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
When creating many elements with react, and providing some user action - scrolling in this example, the memory will continually increase and never be garbage collected
git clone https://github.com/tariqporter/react-memory-leak cd react-memory-leak yarn start
Click the Start button
And start scrolling up and down the page (Will keep attempting to automate the scrolling with the bug persisting)
The memory will continually increase and never be garbage collected. Once the bug begins happening, the user no longer needs to scroll; the memory will keep increasing without any input. 2GB of memory used within a couple of minutes:
This is part of a larger application that has meant it has become unusable with react 16x. It uses react-virtualized, and we also created our own table virtualization, but this memory leak happens with both of them, hence creating this issue.
What is the expected behavior?
I would expect garbage collection to happen at some point and look like the following (The following is the same example with no user input)
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
This is tested in chrome 74.0.3729.131 and firefox 66.0.5 on react 16.8.6. We believe it is for all react 16x
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When creating many elements with react, and providing some user action - scrolling in this example, the memory will continually increase and never be garbage collected
https://github.com/tariqporter/react-memory-leak
git clone https://github.com/tariqporter/react-memory-leak
cd react-memory-leak
yarn start
Click the
Start
buttonAnd start scrolling up and down the page (Will keep attempting to automate the scrolling with the bug persisting)
The memory will continually increase and never be garbage collected. Once the bug begins happening, the user no longer needs to scroll; the memory will keep increasing without any input. 2GB of memory used within a couple of minutes:
This is part of a larger application that has meant it has become unusable with react 16x. It uses
react-virtualized
, and we also created our own table virtualization, but this memory leak happens with both of them, hence creating this issue.What is the expected behavior?
I would expect garbage collection to happen at some point and look like the following (The following is the same example with no user input)
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
This is tested in chrome
74.0.3729.131
and firefox66.0.5
on react16.8.6
. We believe it is for all react16x
The text was updated successfully, but these errors were encountered: