-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Edge not appearing on rerender, if it is attaching to a source handle #3171
Comments
Hey @AlanJereb I am not able to reproduce this: https://codesandbox.io/s/upbeat-kowalevski-hsnjnl?file=/src/Flow.tsx:1182-1264 Do you have a repo or codesandbox, I could check out? |
Hi there, Thank you for your quick reply. There probably is something wrong on our side. |
Unfortunately, similar to the discussion above, when I tried to extract this specific component and build a minimum reproducible case, the problem disappears magically. Full code is available in https://github.com/MarkChenYutian/C0VM-ts in |
Please re-open this issue if you can provide a repo or codesandbox that reproduces it. @MarkChenYutian I will provide feedback under MarkChenYutian/C0VM-ts#41 |
Describe the Bug
When updating data with new nodes and edges and running the changes through the
setNodes
andsetEdges
, only the nodes get rendered, but not the edges that use the sourceHandle property.The edge renders correctly if I reload the page (reinitialize react-flow).
Your Example Website or App
/
Steps to Reproduce the Bug or Issue
Relavant code
Before the change state:
Before the change render:
After the change state:
After the change render (wrong - edge is missing):
Expected behavior
Edges should render the same as nodes do when using setEdges.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: