Increasing the x and y values of the "dimensions" constant in the example will dramatically increase memory usage of the chrome tab even though the number of rendered elements doesnt change.
Depending on how big the cells are memory usage can go up to multiple gigabytes.
What is the expected behavior?
The size of the cells should not have such an impact on memory usage, as not using the collection at all would actually improve the performance in this case.
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
Bug Report
Example: https://codesandbox.io/s/zjrsfp?file=/Example.js
What is the current behavior?
Increasing the x and y values of the "dimensions" constant in the example will dramatically increase memory usage of the chrome tab even though the number of rendered elements doesnt change. Depending on how big the cells are memory usage can go up to multiple gigabytes.
What is the expected behavior?
The size of the cells should not have such an impact on memory usage, as not using the collection at all would actually improve the performance in this case.
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?