chore(core): cleanup

This commit is contained in:
braks
2023-10-06 18:00:01 +02:00
committed by Braks
parent ce1647ad1e
commit 870bc4f74a
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { toRef, until } from '@vueuse/core'
import { computed, onBeforeUnmount, ref } from 'vue'
import { computed, onUnmounted, ref } from 'vue'
import type { HandleProps } from '../../types/handle'
import { Position } from '../../types'
import { useHandle, useNode, useVueFlow } from '../../composables'
@@ -131,7 +131,7 @@ until(() => node.initialized)
node.handleBounds[type.value] = [...(node.handleBounds[type.value] ?? []), nextBounds]
})
onBeforeUnmount(() => {
onUnmounted(() => {
// clean up node internals
const handleBounds = node.handleBounds[type.value]
if (handleBounds) {