Skip to content

Use of next() in middlewares #3

@rotexhawk

Description

@rotexhawk

Why are you calling next() before anything else in your middlewares? Doesn't it pass the action to the next middlware. So I guess I am confused because the typical pattern is to do whatever operation needed and then pass it to the next middleware. This seems to be reversed.

Can you please explain this? A person asked something similar in the talk but I didn't fully understand your reasoning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions