You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scenario for this is pretty easy to reproduce:
Suppose we have a popup implementation -- there is a function to render popup view (react element) in an overlay div element, and a function to unmount the view and destroy the overlay.
In that popup we have a button element, with its onClick set to call the destroy popup function.
When a user clicks that button, React.unmountComponentAtNode is called, and react cleans everything up (ReactMount.nodeCache is empty), but then, react starts to process the blur event (remember, the user clicked the button to close the popup, so it was focused), and that resurrects the button element in ReactMount.nodeCache.
The button DOM element ends up being stuck in nodeCache forever, but the worst part of it is that a lot of DOM nodes (sometimes hundreds) are not subject for GC anymore.
The text was updated successfully, but these errors were encountered:
The scenario for this is pretty easy to reproduce:
The text was updated successfully, but these errors were encountered: