vasturiano / react-force-graph

React component for 2D, 3D, VR and AR force directed graphs
https://vasturiano.github.io/react-force-graph/example/large-graph/
MIT License
2.15k stars 275 forks source link

The 3d graph suddenly hops or flickers at regular intervals #514

Open MahithaSann opened 3 months ago

MahithaSann commented 3 months ago

I have created a graph using React force 3D and the graph suddenly hops or flickers at regular intervals. help me solve the issue.

vasturiano commented 3 months ago

@MahithaSann please provide a simple reproducing example, on https://codesandbox.io/ for instance.

lalalune commented 2 weeks ago

For the record, I had this problem and found that the issue was caused by regenerating the graph in my render function on accident. The graph needs to be held in a React state variable and not generated in the JSX return.