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

Support specifying a single handler for multiple mutations or actions #13

Open
banderror opened this issue May 27, 2020 · 0 comments
Open
Labels
type: visible enhancement New feature, change in the library API or expected behaviour

Comments

@banderror
Copy link
Owner

Support specifying a single handler for multiple mutations or actions.

Example:

handle.mutation([reset, submitted], state => {
  state.isPending = false;
});

handle.action([a, b], () => {
  //...
});
@banderror banderror added the type: visible enhancement New feature, change in the library API or expected behaviour label Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: visible enhancement New feature, change in the library API or expected behaviour
Projects
None yet
Development

No branches or pull requests

1 participant