mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 10:51:26 +01:00
Proto files off model
This commit is contained in:
10
src-web/hooks/useGrpcProtoFiles.ts
Normal file
10
src-web/hooks/useGrpcProtoFiles.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { NAMESPACE_GLOBAL } from '../lib/keyValueStore';
|
||||
import { useKeyValue } from './useKeyValue';
|
||||
|
||||
export function useGrpcProtoFiles(activeRequestId: string | null) {
|
||||
return useKeyValue<string[]>({
|
||||
namespace: NAMESPACE_GLOBAL,
|
||||
key: ['proto_files', activeRequestId ?? 'n/a'],
|
||||
defaultValue: [],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user