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

Function useOverrideConfigAtom

frontend/app/store/global.ts:209–214  ·  view source on GitHub ↗
(blockId: string | null, key: T)

Source from the content-addressed store, hash-verified

207}
208
209function useOverrideConfigAtom<T extends keyof SettingsType>(blockId: string | null, key: T): SettingsType[T] {
210 if (blockId == null) {
211 return useAtomValue(getSettingsKeyAtom(key));
212 }
213 return useAtomValue(getOverrideConfigAtom(blockId, key));
214}
215
216function getSettingsKeyAtom<T extends keyof SettingsType>(key: T): Atom<SettingsType[T]> {
217 if (isPreviewWindow()) return NullAtom as Atom<SettingsType[T]>;

Callers 2

DiffViewerFunction · 0.90
CodeEditorFunction · 0.90

Calls 2

getSettingsKeyAtomFunction · 0.85
getOverrideConfigAtomFunction · 0.85

Tested by

no test coverage detected