Interface Middleware<S, A>

Type Parameters

  • S = any

    The type of the state managed by the store.

  • A extends Action = AnyAction

    The type of the action being dispatched.

Hierarchy

  • Middleware
  • A middleware function that receives the current state, the action being dispatched, and the next middleware function in the chain.

    Returns

    • The state returned by the next middleware in the chain.

    Parameters

    • state: S

      The current state of the store.

    • action: A

      The action being dispatched.

    • next: NextMiddleware<A>

      The next middleware function in the chain.

    Returns S

Generated using TypeDoc