Skip to content

Some reactive behaviors did not trigger as expected when updating nodes. May I ask what the reason is? #1926

Answered by bcakmakoglu
dominic-z asked this question in Q&A
Discussion options

You must be logged in to vote

TL;DR: Bind your nodes using v-model:nodes and you'll see it working (you'll get proper two way binding for your provided node objects and those that are internally stored by VueFlow)
And even better, use updateNodeData and updateNode to modify node properties instead of doing mutations.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dominic-z
Comment options

Answer selected by dominic-z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants