Skip to content

REACT - Do we need to detach event handlers in componentWillUnmount? #2

@mantagen

Description

@mantagen

For instance, in a React component, if an event handler is attached to the window on render (is that bad practise in itself?/ always avoidable) , should it it detached in the componentWillUnmount method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions