Skip to content

Consider more verbose emit return value. #5

@davidlehn

Description

@davidlehn

Returning false as a signal a listener cancelled the event makes code difficult to understand. You must explicitly check for false, not just a falsey return value. Consider a more verbose return value like {cancelled: true/false}, and perhaps other details as needed.

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