I am using a grid component(V: 27.1.50) to render tasks in react based web application. When dynamically changing the data source based on the selected filter (e.g., gridInstanceMyTask.dataSource = myTasks;), selecting and de-selecting the filter triggers a re-render and updates the data. However, this process continuously increases heap memory, and it is not being garbage collected over time. The retained objects are linked to detached DOM nodes.
Here's the list of actions causing the issue:
- Selecting/de-selecting filters
- Changing the data source dynamically
- Heap memory growth due to detached DOM nodes
UI referring snapshot 1:

UI referring snapshot 2:

Snapshot showcasing retained objects:
1:

2:

3:

4:

How can I optimize memory usage and ensure proper garbage collection?
I am using a grid component(V: 27.1.50) to render tasks in react based web application. When dynamically changing the data source based on the selected filter (e.g., gridInstanceMyTask.dataSource = myTasks;), selecting and de-selecting the filter triggers a re-render and updates the data. However, this process continuously increases heap memory, and it is not being garbage collected over time. The retained objects are linked to detached DOM nodes.
Here's the list of actions causing the issue:
UI referring snapshot 1:

UI referring snapshot 2:

Snapshot showcasing retained objects:




1:
2:
3:
4:
How can I optimize memory usage and ensure proper garbage collection?