Open kamami opened 6 months ago
@kamami I think the culprit of the issue is that you should memoize these methods:
arcDashLength={() => Math.random()}
arcDashGap={() => Math.random()}
arcDashAnimateTime={() => Math.random() * 4000 + 500}
Otherwise everytime your component rerenders, you're essentially passing new method instances to globe, indicating that you wish that functionality to change and start over.
I am using an interval to change the population of my HexTubes and make an animation happen. I also have some Arcs added to the globe. Now I noticed, that whenever I update popData in the interval the arcs disappear and reappear again -> The whole globe is re-rendering. How can I prevent this behavior?
https://github.com/vasturiano/react-globe.gl/assets/43880037/1de9137f-c9f5-4a54-b2d4-a04f4fa0ca65