react-graph-vis icon indicating copy to clipboard operation
react-graph-vis copied to clipboard

Graph not unloading?

Open daliborfilus opened this issue 3 years ago • 0 comments

Hello, thank you for this react component. I have an issue, where I have this graph component in a functional (pure) react component inside a Material UI tab. Then I load a 300-node graph, which is rendering somewhat slowly, but consistently. But when I switch tabs, the browser remains laggy. When I switch tabs back to the graph, the graph is properly re-drawn, but is now much slower. Switching tabs back and forth just increases the lag.

Looking at the code, it seems to me that you don't unload the visjs network graph on component dismount?

daliborfilus avatar Apr 28 '22 15:04 daliborfilus