sim51 / react-sigma

Sigma React component
https://sim51.github.io/react-sigma/
Other
158 stars 27 forks source link

Error after deleting a node #53

Closed jMoulis closed 8 months ago

jMoulis commented 1 year ago

Hello, I'm brand new using the lib. I'm trying to add, for testing purpose, a doubleclick on a node to drop it. But I catch th following error: Uncaught NotFoundGraphError: Graph.neighbors: could not find the "48309" node in the graph., which seems pretty normal, because I just deleted. I tried to use a cleaning function in the graph.on('nodeDropped'), but I can't get it working. Can you help me? Best regards

react-18 react-sigma 3.0.0

sim51 commented 1 year ago

Can you provide your code or make and example on codesandbox ? Which part of the code throws this error ? Is it inside the node reducer ?