Skip to content

Commit

Permalink
fix: use on-unmounted instead of on-before-unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
doutatsu committed Mar 4, 2024
1 parent 957d519 commit 874734b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
defineComponent,
h,
nextTick,
onBeforeUnmount,
onUnmounted,
onMounted,
ref,
shallowRef,
Expand Down Expand Up @@ -60,7 +60,7 @@ export const Chart = defineComponent({

onMounted(renderChart)

onBeforeUnmount(destroyChart)
onUnmounted(destroyChart)

watch(
[() => props.options, () => props.data],
Expand Down

0 comments on commit 874734b

Please sign in to comment.