Apply middleware functions to a container.
Middlewares are applied in array order, but execute in reverse order.
const container = applyMiddleware( createContainer(), [A, B],); Copy
const container = applyMiddleware( createContainer(), [A, B],);
The execution order will be:
This allows outer middlewares to wrap and control the behavior of inner middlewares.
Apply middleware functions to a container.
Middlewares are applied in array order, but execute in reverse order.