Using updateEdge()
with Composition API doesn't immediately render update
#294
-
Here's how I'm using onEdgeUpdate(({ edge, connection }) => updateEdge(edge, connection)) And my <template>
<VueFlow
v-model="elements"
:edges-updatable="true"
:fit-view-on-init="true"
:connection-mode="ConnectionMode.Strict"
>
... When dragging the edge to a new handle, it updates the store, but the changes don't appear until I cause a re-paint, such as dragging a node. Am I missing a setting in the config? |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Oct 4, 2022
Replies: 1 comment 1 reply
-
No, that seems to be a bug. For now you can just use the way demonstrated in the examples. const onEdgeUpdate = ({ edge, connection }) => {
elements.value = updateEdge(edge, connection, elements.value)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Modjular
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, that seems to be a bug.
For now you can just use the way demonstrated in the examples.