Skip to content

app.on('event', state => {}) calls within components persist after component is unmounted #20

@aeblin

Description

@aeblin

Was noticing a bit of weirdness in a Slater store I've been working on and realized that a few of my components with app.on('event', state => {}) calls inside them have these calls persist after the component is unmounted.

Other functions that don't utilize app.on(...) are wiped out on unmount as expected for components that return a function.

Curious if this behavior is intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions