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.24k stars 284 forks source link

Uncaught TypeError: object null is not iterable #512

Open mbledkowski opened 6 months ago

mbledkowski commented 6 months ago

Describe the bug When the data gets reloaded, I get the following error: Uncaught TypeError: object null is not iterable

To Reproduce Steps to reproduce the behavior:

  1. Load react-force-graph-2d component
  2. Change data in graphData

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Additional context Add any other context about the problem here. Next.js + TRPC

mbledkowski commented 6 months ago

Full code: https://github.com/mbledkowski/interwebs Sorry for spaghetti code, it is work in progress

Ars25Terra commented 1 month ago

Seems, I have the same problem: https://github.com/vasturiano/react-force-graph/issues/540

@mbledkowski, did u figure this out?

mbledkowski commented 1 month ago

From what I remember, I worked around that, but the issue is still present.