Closed
Description
Why does the second level function (which is passed the next
function ref) needed? The way applyMiddleware works, the dispatch functions returned by the middleware are stored as such -
store.dispatch = middleware(store)(store.dispatch);
Why can't the next
be simply passed as the second parameter in the first middleware function call?
Metadata
Metadata
Assignees
Labels
No labels