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

Feature Request: allow once modifier on custom event handlers #2654

Closed
humphd opened this issue May 2, 2019 · 0 comments · Fixed by #2987
Closed

Feature Request: allow once modifier on custom event handlers #2654

humphd opened this issue May 2, 2019 · 0 comments · Fixed by #2987

Comments

@humphd
Copy link

humphd commented May 2, 2019

Having the ability to add modifiers for DOM events (#1088 )is really great, for example: on:click|once={handleClick}. Since this mechanism is now available, it might be useful to extend it to custom event handlers, such that you can do on:message|once={handleDispatch}. Obviously not all modifiers make sense in the context of a custom event. But for sure once would be useful.

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

Successfully merging a pull request may close this issue.

2 participants