You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The graph stays the same, event on unmount, it is stored on the SigmaContainer component.
FYI, graphology has some merge functions to add or update nodes/edges.
BTW, I don't know why your component should be remounted, ... generally the properties of the SigmaContainer are pretty much immutable, so the tree should not be re-rendered ...
Thanks for the explanation, I appreciate your feedback as always.
I didn't know the state was persisted, I have added a useEffect when adding nodes and this works.
Thanks for this library.
EDIT: The nodes and links props are my actual data but I was using your example as a demo, I will update the code to add nodes from these props.
Uh oh!
There was an error while loading. Please reload this page.
Hello again,
I'm having trouble getting ForceAtlas2 to work.
The following code works:
But calling https://graphology.github.io/standard-library/layout-forceatlas2.html after the random assign doesn't:
Do you know what could be the issue?
The text was updated successfully, but these errors were encountered: