Memory leak issue where the JS heap does not clear after loading a large amount of data and unmounting the component.
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 2. Unmount the said component 3. 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 >>
1 millions data load >>
after table component unmount (remove component)
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):
- OS: Ubuntu20.04, Window 11
- Browser: Chrome
- Version: tui v4.21.15