-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listeners "leak" and increasing nodes after unmountComponentAtNode #11852
Comments
Are you testing with the production version? |
@gaearon Thank you for the quick response. The first screenshot is using DEV version. The fiddle is using the provided template. I tried with Do you know what is causing this ? (Closed) |
I don't think it's a leak even in DEV. If you wait for GC it should get collected. |
You're right it just takes longer. |
This was referenced Dec 18, 2020
This was referenced Sep 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
thenReactDOM.unmountComponentAtNode
several times I get the following chart with what looks like an increasing number of listeners and nodes in my application.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"
The text was updated successfully, but these errors were encountered: