bcakmakoglu / vue-flow

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.

Home Page:https://vueflow.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛 [BUG]: Dynamically adding child nodes with existing relation

harshaktg opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues and this is a new bug.

Current Behavior

I am trying to add a child node dynamically in the graph. I already have an edge which has connection from that particular child node to another node. Once the child node is successfully added on the graph, the edge is not drawn though the edge object is still present.

Here is the sandbox link

Expected Behavior

It should have drawn the edge when the node is dynamically added

Steps To Reproduce

No response

Relevant log output

No response

Anything else?

No response

Edges always need to reference existing nodes
You can’t just „create“ an edge and add the nodes for it afterwards, if that’s what you’re doing.