Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why didn't I add multiple middleware at a time? #133

Open
myfreax opened this issue Nov 7, 2019 · 0 comments
Open

Why didn't I add multiple middleware at a time? #133

myfreax opened this issue Nov 7, 2019 · 0 comments

Comments

@myfreax
Copy link

myfreax commented Nov 7, 2019

I kown you can add function addAll to MiddlewareBuilder. But I have found it in MiddlewareBuilder. Why not add this function. I don't want to invoke add function every time

example

Map<ActionName, MiddlewareHandler<HomeState, HomeStateBuilder, HomeActions, dynamic>> other ={
  HomeActionsNames.homeIncreaseAsync:_homeIncrease,
};
MiddlewareBuilder..addAll(other)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant