react-cytoscapejs
react-cytoscapejs copied to clipboard
When a component is re-rendered or state is mutated cytoscape nodes array is not cleared
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 ?
I have the same Issue. Did you resolve this ?