Dmytro Morar
State Management

Middleware Pipeline

Middleware sits between dispatch and the reducer in a chain.

Flow

Action → dispatch → middleware chain → reducer → new state

Shape

store => next => action

Notes

  • Each middleware decides whether to pass, modify, or stop an action
  • Reducers are always last

On this page