nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.41k stars 388 forks source link

Memory leak issue where the JS heap does not clear after loading a large amount of data and unmounting the component. #1948

Open DoMyBestFor opened 1 year ago

DoMyBestFor commented 1 year ago

Describe the bug Memory leak issue where the JS heap does not clear after loading a large amount of data and unmounting the component.

To Reproduce Steps to reproduce the behavior:

**1. Load 1 million data items into the React TUI grid component

  1. Unmount the said component
  2. Check the JS heap**

I waited a day thinking that the garbage collection (GC) might take a long time to work, but there was no change.

Expected behavior memory release

Screenshots before load >> image

1 millions data load >> image image

after table component unmount (remove component) image

I waited a day thinking that the garbage collection (GC) might take a long time to work, but there was no change.

It seems to be a critical issue as the heap continuously increases and the garbage collection (GC) does not work with every creation of the table component, even after deleting the component.

Desktop (please complete the following information):