Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using updateEdge() with Composition API doesn't immediately render update #295

Closed
bcakmakoglu opened this issue Oct 4, 2022 Discussed in #294 · 1 comment · Fixed by #296
Closed

Using updateEdge() with Composition API doesn't immediately render update #295

bcakmakoglu opened this issue Oct 4, 2022 Discussed in #294 · 1 comment · Fixed by #296
Assignees
Labels
bug Something isn't working

Comments

@bcakmakoglu
Copy link
Owner

Discussed in #294

Originally posted by Modjular October 4, 2022
Here's how I'm using updateEdge in my SFC

onEdgeUpdate(({ edge, connection }) => updateEdge(edge, connection))

And my VueFlow config

<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?

@bcakmakoglu bcakmakoglu self-assigned this Oct 4, 2022
@bcakmakoglu bcakmakoglu added the bug Something isn't working label Oct 4, 2022
@bcakmakoglu bcakmakoglu linked a pull request Oct 4, 2022 that will close this issue
@bcakmakoglu
Copy link
Owner Author

Fixed with 0.4.41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant