Skip to content

Allow setting the onevent callback per-call for m.redraw #2074

Closed
@dead-claudia

Description

@dead-claudia

(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 the setEventCallback API in the first place, making it a little easier to integrate the two.

Note: this option would change vnode.events objects accordingly if onevent 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementFor any feature request or suggestion that isn't a bug fix

    Type

    No type

    Projects

    Status

    Completed/Declined

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions