Interface AutoActions<TState, TAction>

Optional function that produces (returns) an array of actions to be added to (the end of) the action queue after a a particular action finished execution.

The "auto" phrase means the autoActions function invocation is automatic:

  • after a proper action gets dispatched
  • after the new state is calculated in reducer
  • after invoking callback listeners

If there are no actions to be produced, returns empty array ([]) of actions.

Type Parameters

  • TState extends Object

  • TAction extends Action

Hierarchy

  • AutoActions
  • Parameters

    • args: {
          action: TAction;
          changedPaths: (keyof TState)[];
          newState: TState;
          oldState: TState;
      }
      • action: TAction
      • changedPaths: (keyof TState)[]
      • newState: TState
      • oldState: TState

    Returns TAction[]

Generated using TypeDoc