Is there any onSelectionChange
event like react flow in vueflow?
#1359
-
RT |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Mar 26, 2024
Replies: 1 comment 1 reply
-
No, you can just create your own watcher + const { getSelectedNodes, getSelectedEdges } = useVueFlow()
watch([getSelectedNodes, getSelectedEdges], ([nextNodes, nextEdges]) => {
// do something when selected nodes/edges changed
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Genuifx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, you can just create your own watcher +
getSelectedNodes
/getSelectedEdges
.There's currently no hook like
useOnSelectionChange
, maybe I'll add it for v2.