We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1647a commit 870bc4fCopy full SHA for 870bc4f
packages/core/src/components/Handle/Handle.vue
@@ -1,6 +1,6 @@
1
<script lang="ts" setup>
2
import { toRef, until } from '@vueuse/core'
3
-import { computed, onBeforeUnmount, ref } from 'vue'
+import { computed, onUnmounted, ref } from 'vue'
4
import type { HandleProps } from '../../types/handle'
5
import { Position } from '../../types'
6
import { useHandle, useNode, useVueFlow } from '../../composables'
@@ -131,7 +131,7 @@ until(() => node.initialized)
131
node.handleBounds[type.value] = [...(node.handleBounds[type.value] ?? []), nextBounds]
132
})
133
134
-onBeforeUnmount(() => {
+onUnmounted(() => {
135
// clean up node internals
136
const handleBounds = node.handleBounds[type.value]
137
if (handleBounds) {
0 commit comments