(nameSpace?: string)
| 43 | export const useDispatchStore = <Action,>() => useContext(DispatchContext as DispatchContextType<Action>); |
| 44 | |
| 45 | export const useStateStore = <State,>(nameSpace?: string) => { |
| 46 | const store = useContext(StateContext); |
| 47 | const state: State = nameSpace ? store[nameSpace] : store; |
| 48 | return state; |
| 49 | }; |
no outgoing calls
no test coverage detected