Skip to content

Listeners "leak" and increasing nodes after unmountComponentAtNode #11852

@raed667

Description

@raed667

Do you want to request a feature or report a bug?
Possible bug

What is the current behavior?

When I render a very simple React app using ReactDOM.render then ReactDOM.unmountComponentAtNode several times I get the following chart with what looks like an increasing number of listeners and nodes in my application.

react_empty

Here is a fiddle of what I'm doing : https://jsfiddle.net/ugy84ap0/

What is the expected behavior?

I think after unmountComponentAtNode my graph should be flat ?

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

I'm using latest create-react-app / "react": "16.2.0"

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