MCPcopy
hub / github.com/opentrace/opentrace / useGraph

Function useGraph

ui/src/providers/GraphDataProvider.tsx:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57// eslint-disable-next-line react-refresh/only-export-components -- co-located hook + provider
58export function useGraph(): GraphDataState {
59 const ctx = useContext(GraphDataContext);
60 if (!ctx) {
61 throw new Error('useGraph must be used within a GraphDataProvider');
62 }
63 return ctx;
64}

Callers 6

AppInnerFunction · 0.90
SidePanelFunction · 0.90
ChatPanel.tsxFile · 0.90
GraphViewer.tsxFile · 0.90
useGraphViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected