Interface RegisterStateContainerArgs<TState, TAction>

Type Parameters

  • TState extends Object

  • TAction extends Action

Hierarchy

  • RegisterStateContainerArgs

Properties

autoActions?: AutoActions<TState, TAction>

Please read the AutoActions interface for more details.

autoState?: AutoState<TState, TAction>

Please read the AutoState interface for more details.

config?: Config<TState>
containerId: string

Set globally unique id for container

initialState: TState | ((persistedState) => TState)

Initial state can be a simple object (most of the cases).

If initialState is a function, it gets invoked automatically and the effect is initial state.

Type declaration

    • (persistedState): TState
    • Parameters

      • persistedState: Partial<TState>

      Returns TState

persistence?: StateContainerPersistence<TState>

Optional (and advanced!) persistence configuration

reducer: Reducer<TState, TAction>

Generated using TypeDoc