Updatable Edge #675
-
Hi! I try to make updatable edge with delete edge on drop. I saw example on reactFlow(https://reactflow.dev/docs/examples/edges/delete-edge-on-drop/) and try to make it with vueFlow. Everything work fine except one case. If start dragging edge from node_1 and connect to node_1 (node not changed) edge removes. In reactFlow every time on edge updated calls Example code: https://codesandbox.io/p/sandbox/elated-cache-y32fjl
Screen.Recording.2023-02-13.at.17.44.00.mov
Screen.Recording.2023-02-13.at.17.45.10.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Mh... currently the behavior is to not emit I could change the current behavior to match that of React Flow. |
Beta Was this translation helpful? Give feedback.
Mh... currently the behavior is to not emit
edgeUpdate
when the connection already exists, which just avoids updates that are unnecessary.React Flow doesn't do this check and thus always emits an
edgeUpdate
event, even if it's the same edge.I could change the current behavior to match that of React Flow.