-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
Allow setting the onevent
callback per-call for m.redraw
#2074
Comments
onevent
callback per-call for m.redraw
This is all I need to integrate my Side note: I'm relying on a few internals in that to actually do it right:
Also, I had to reimplement the following (amounting to ~30% of the code):
|
One other thing I'd do as part of this is move the |
And one last thing: I would add a final * Only if we decide to keep stateful object components. (This was discussed on Gitter and referenced in #2293.) |
(Elevating this comment into an issue)
I could use the ability to set per-call the
onevent
callback for custom auto-redraw behavior on nodes rendered in that call only.Also, that option could be used by
redrawService
to avoid needing thesetEventCallback
API in the first place, making it a little easier to integrate the two.Note: this option would change
vnode.events
objects accordingly ifonevent
was already set for it.(Yes, this implies a slight memory increase for vnodes with event handlers, but I doubt perf implications would be significant at all, since the event objects are persisted across redraws anyways.)
The text was updated successfully, but these errors were encountered: