useStore<TReduxState> function

Store<TReduxState> useStore<TReduxState>()

A hook that returns a reference to the same Redux Store that was passed in to the ReduxProvider component that the function component using the hook is a descendant of.

This hook should probably not be used frequently. Prefer useSelector as your primary choice. However, this may be useful for less common scenarios that do require access to the Store, such as replacing reducers.

If you need access to a specific store from a nested ReduxProvider with a custom Context, use createStoreHook instead.

See the react-redux JS documentation for more details.

Implementation

Store<TReduxState> useStore<TReduxState>() => _jsUseStore().dartStore as Store<TReduxState>;