()
| 34 | |
| 35 | // eslint-disable-next-line react-refresh/only-export-components |
| 36 | export function useStore(): StoreContextValue { |
| 37 | const ctx = use(StoreContext); |
| 38 | if (!ctx) { |
| 39 | throw new Error('useStore() must be used within <StoreProvider>'); |
| 40 | } |
| 41 | return ctx; |
| 42 | } |
no outgoing calls
no test coverage detected