Skip to the content.

What order does middleware run in?

Middleware is the only part of a Redux store that is not a pure function of state and action, which is exactly why its ordering surprises people.

With applyMiddleware(logger, thunk), in what order does an action pass through them?

Your logger is declared before thunk and prints '[object Function]' for every async action. Why?

What does a middleware that forgets to call next(action) do?

Inside middleware, when should you call store.dispatch(action) instead of next(action)?