Skip to content

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

@humphd

Description

@humphd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions