Braks
Braks
What happens here is that with `ConnectionMode.Loose` (which is currently the default, although with 2.0 `ConnectionMode.Strict` will be the default mode) allows source source and target target connections *but* this...
[Works fine for me in a sandbox.](https://codesandbox.io/p/sandbox/boring-kate-rjyfl3) Can you provide a reproduction of the issue? 🤔
Using `setNodes` of `useReactFlow` works fine for me in [this sandbox](https://codesandbox.io/p/sandbox/boring-kate-rjyfl3) as well 🤔 Although just doing `setNodes(modifyNodes)` doesn't seem to work for whatever reason 😐
Ok so it turns out this fails using `setNodes` of `useReactFlow` *if* the nodes are not modified at all. So `setNodes(modifyNodes)` won't do anything since all the node objects stay...
I'm assuming that `function getElementsDiffChanges` which handles the nodeQueue inside of `setNodes` of `useReactFlow` doesn't consider changes in order since it only compares for changes in the node objects with...
You're probably running into the issue that you aren't technically *clicking* the node but *dragging* the node. Try increasing the `nodeDragThreshold` to a bigger number and see if this issue...
[Seems to work fine for me in this sandbox.](https://stackblitz.com/edit/svelte-flow-ts-vyezbtlv?file=src%2FFlow%2Findex.svelte) I had to shorten the video due to upload limits but it worked fine for 10 clicks each. https://github.com/user-attachments/assets/f796dfc8-3249-4480-950b-b29cde63bba0
Your sandbox isn't available.
Seems like the useEffect you call in your `AddNode` that's supposed to do the initial data update creates some issue that causes edges not to be rendered, I'm not sure...
``` source: `nested-causal-node-${index}-${nestedIndex}` ``` Where does this id come from? Your code snippet doesn't seem to have any reference to a node that would have this id. I see these...