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 884abdc commit eefcfa3Copy full SHA for eefcfa3
src/chart.ts
@@ -6,7 +6,8 @@ import {
6
onMounted,
7
onBeforeUnmount,
8
watch,
9
- toRaw
+ toRaw,
10
+ nextTick
11
} from 'vue'
12
import { Chart as ChartJS } from 'chart.js'
13
import type { ChartComponent } from './types.js'
@@ -102,7 +103,9 @@ export const Chart = defineComponent({
102
103
}
104
105
if (shouldUpdate) {
- update(chart)
106
+ nextTick(() => {
107
+ update(chart)
108
+ })
109
110
},
111
{ deep: true }
0 commit comments