Skip to content

Commit

Permalink
chore(core): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Oct 5, 2023
1 parent 9bf5139 commit 5be1e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/Handle/Handle.vue
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5be1e5d

Please sign in to comment.