• Preparing search index...
  • The search index is not available
@xarc/react-redux
  • @xarc/react-redux
  • browser
  • ReactRedux
  • createStoreHook

Function createStoreHook

  • createStoreHook<S, A>(context?): (<State, Action>() => Store<State, Action>)
  • Hook factory, which creates a useStore hook bound to a given context.

    Type Parameters

    • S = unknown
    • A extends Action<any> = AnyAction

    Parameters

    • Optional context: Context<ReactReduxContextValue<S, A>>

      Context passed to your <Provider>.

    Returns (<State, Action>() => Store<State, Action>)

    A useStore hook bound to the specified context.

      • <State, Action>(): Store<State, Action>
      • Type Parameters

        • State = S
        • Action extends Action<any> = A

        Returns Store<State, Action>

    • Defined in common/temp/node_modules/.pnpm/react-redux@8.1.3_91ee3f21853aee6f4038f22086c31182/node_modules/react-redux/es/hooks/useStore.d.ts:10

Settings

Member Visibility

Theme

@xarc/react-redux
  • Loading...

Generated using TypeDoc