react-cytoscapejs icon indicating copy to clipboard operation
react-cytoscapejs copied to clipboard

When a component is re-rendered or state is mutated cytoscape nodes array is not cleared

Open JoshuaeKaiser opened this issue 4 years ago • 1 comments

When my component re-renders or i mutate the state with a setter, the array containing the nodes is not cleared so we end up with a progressively larger array containing the copies of the same data.

What I also do not understand is if the array is getting larger with additional nodes on each rerender why is cytoscape not renderering more and more nodes ?

Stumped on this. Is it a bug or am I and idiot ?

Screen Shot 2020-12-03 at 20 58 25 Screen Shot 2020-12-03 at 20 59 37

JoshuaeKaiser avatar Dec 03 '20 21:12 JoshuaeKaiser

I have the same Issue. Did you resolve this ?

knightswatch3 avatar Apr 30 '21 17:04 knightswatch3