MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / useOrefMetaKeyAtom

Function useOrefMetaKeyAtom

frontend/app/store/global.ts:155–157  ·  view source on GitHub ↗
(oref: string, key: T)

Source from the content-addressed store, hash-verified

153}
154
155function useOrefMetaKeyAtom<T extends keyof MetaType>(oref: string, key: T): MetaType[T] {
156 return useAtomValue(getOrefMetaKeyAtom(oref, key));
157}
158
159function getConnConfigKeyAtom<T extends keyof ConnKeywords>(connName: string, key: T): Atom<ConnKeywords[T]> {
160 if (isPreviewWindow()) return NullAtom as Atom<ConnKeywords[T]>;

Callers

nothing calls this directly

Calls 1

getOrefMetaKeyAtomFunction · 0.85

Tested by

no test coverage detected