Listen specific action(s) instead of all #1942
Closed
RedskyThirty
started this conversation in
Ideas
Replies: 1 comment
-
I think that adding a new syntax to something that can be easily achieved with short code is not worth because it adds another thing to remember. Currently it can be achieved with: myStore.$onActions(({ name }) => {
if (name === 'sayHello' || name === 'sayHola') {}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if we could listen one or some specific actions instead of listening all with "$onAction".
Example:
In a component:
myStore.$onActions(['sayHello', 'sayHola'], (callback) => { });
Beta Was this translation helpful? Give feedback.
All reactions