MCPcopy
hub / github.com/opentrace/opentrace / useStore

Function useStore

ui/src/store/context.tsx:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35// eslint-disable-next-line react-refresh/only-export-components
36export function useStore(): StoreContextValue {
37 const ctx = use(StoreContext);
38 if (!ctx) {
39 throw new Error('useStore() must be used within <StoreProvider>');
40 }
41 return ctx;
42}

Callers 10

AppInnerFunction · 0.90
context.test.tsxFile · 0.90
JobServiceProviderFunction · 0.90
SettingsDrawerFunction · 0.90
SidePanelFunction · 0.90
ChatPanel.tsxFile · 0.90
ExportModalFunction · 0.90
IndexMetadataPanelFunction · 0.90
GraphViewer.tsxFile · 0.90
useGraphDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected