MCPcopy
hub / github.com/clientIO/joint / useGraphStore

Function useGraphStore

packages/joint-react/src/hooks/use-graph-store.ts:12–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 * @throws An error if the hook is used outside of a GraphProvider.
11 */
12export function useGraphStore(): StoreContext {
13 const store = useContext(GraphStoreContext);
14 if (!store) {
15 throw new Error('useGraphStore must be used within a GraphProvider');
16 }
17 return store;
18}

Callers 8

ComponentFunction · 0.90
useElementFunction · 0.90
useElementsFunction · 0.90
useUpdateElementFunction · 0.90
useCreatePaperFunction · 0.90
useLinksFunction · 0.90
useMeasureNodeSizeFunction · 0.90
useGraphFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected