()
| 56 | |
| 57 | // eslint-disable-next-line react-refresh/only-export-components -- co-located hook + provider |
| 58 | export 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 | } |
no outgoing calls
no test coverage detected