Skip to content

why does the middleware have three levels #48

Closed
@mukeshsoni

Description

@mukeshsoni

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions