Skip to content

Commit 870bc4f

Browse files
committed
chore(core): cleanup
1 parent ce1647a commit 870bc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/components/Handle/Handle.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
22
import { toRef, until } from '@vueuse/core'
3-
import { computed, onBeforeUnmount, ref } from 'vue'
3+
import { computed, onUnmounted, ref } from 'vue'
44
import type { HandleProps } from '../../types/handle'
55
import { Position } from '../../types'
66
import { useHandle, useNode, useVueFlow } from '../../composables'
@@ -131,7 +131,7 @@ until(() => node.initialized)
131131
node.handleBounds[type.value] = [...(node.handleBounds[type.value] ?? []), nextBounds]
132132
})
133133
134-
onBeforeUnmount(() => {
134+
onUnmounted(() => {
135135
// clean up node internals
136136
const handleBounds = node.handleBounds[type.value]
137137
if (handleBounds) {

0 commit comments

Comments
 (0)