New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links are not updating correctly #488
Comments
@sivarasan-sph thanks for reaching out. It's difficult to say without more context, so if you still need more dedicated help it's better if you create a simple example with your issue. It looks like in this case you are updating the Another thing you can try is using different |
@vasturiano unfortunately i'm having a similar issue, please let me know if for you is better have 2 different issues, but it's happening on a 2D Graph. I have a button to hide a node, (with all the nodes and all the links no more needed), but as i update the list of nodes and links, other links will disappear. Dragging a "detached" node i see the link is still working, so it seems to be only a visualization problem. It happens not only on "large" set of data, but it can happen also in a graph with more of less 10 nodes and links. I'm using: |
@Nek97 could you please create a simple repro example? It's difficult to diagnose this without deeper context into your data structure changes. |
Also having this issue! |
Describe the bug
When using ForceGraph3D from the react-force-graph library in a React application, I encounter an issue with dynamically updating the graph. Initially, the graph renders correctly with data fetched from Firebase. However, problems arise when attempting to update the graphData object with new data. After adding new entries to the graphData, particularly to the links array, the ForceGraph3D component fails to render the updated graph and produces an error. This suggests an issue with how the new data is formatted or merged into the existing graph data.
Additional Context:
The issue seems to specifically involve the formatting or integration of new data into the links array of the graphData object.
The initial rendering with Firebase data works seamlessly, but the graph fails to update correctly with subsequent additions of new data.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: