Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detached Nodes Memory Leak #46

Open
jmetz93 opened this issue Mar 17, 2022 · 1 comment
Open

Detached Nodes Memory Leak #46

jmetz93 opened this issue Mar 17, 2022 · 1 comment

Comments

@jmetz93
Copy link

jmetz93 commented Mar 17, 2022

Use Case: Dashboard that displays Gantt Chart and refreshes the Gantt Chart with new data at certain intervals.

What ends up happening in heap snapshots is a ballooning of Detached Nodes, Divs, Table Elements, etc and really hurts the page performance. When checking out what they are, it's all the html associated within the gantt chart.

Snapshot:
Screen Shot 2022-03-17 at 9 09 43 AM

That's just some of them, it also includes all table row elements and every refresh adds another instance of all these elements.

Here is how I render the Gantt Chart (it is within a react component):
Screen Shot 2022-03-17 at 9 11 33 AM

I have tried extending this code to target those specific elements and remove them as well before rendering, but that doesn't appear to solve the issue. Is there something I can change to prevent this issue?

@delhoume
Copy link
Member

Are you sure it is a Gantt component issue, and not a React one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants