• When the component is first mounted, this hook creates and returns a a new long-lived Store initialised with initialState.

    In later renders the hook will always return the same Store, It deliberately doesn't force a component refresh when the Store state changes. To track changes in the store, see useSelected or useRootState.

    Type Parameters

    • T extends object

    Parameters

    Returns Store<T>

    A lazily-created Store

Generated using TypeDoc