MCPcopy
hub / github.com/opentrace/opentrace / useGraphInteraction

Function useGraphInteraction

ui/src/providers/GraphInteractionProvider.tsx:535–543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

533
534// eslint-disable-next-line react-refresh/only-export-components -- co-located hook + provider
535export function useGraphInteraction(): GraphInteractionState {
536 const ctx = useContext(GraphInteractionContext);
537 if (!ctx) {
538 throw new Error(
539 'useGraphInteraction must be used within a GraphInteractionProvider',
540 );
541 }
542 return ctx;
543}

Callers 3

SidePanelFunction · 0.90
GraphViewer.tsxFile · 0.90
useGraphViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected