Skip to content

Remove restrictions from prependMiddleware() and middleware() methods #277

@vjik

Description

@vjik

Proposed new feature or change

Currently middleware() can only be used only before an action is added, and prependMiddleware() only after action is added.

We can remove this restrictions:

  • middleware() adds middleware to end of list if action haven't been added, and adds it before action otherwise.
  • prependMiddleware() always prepends middleware to the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions