()
| 10 | * @throws An error if the hook is used outside of a GraphProvider. |
| 11 | */ |
| 12 | export 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 | } |
no outgoing calls
no test coverage detected