Skip to content

Commit e426224

Browse files
Azir-11a
authored andcommitted
fix(hooks): fixed the issue where loading was not properly closed in some cases. (soybeanjs#737)
1 parent 0e61798 commit e426224

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hooks/common/echarts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ export function useEcharts<T extends ECOption>(optionsFactory: () => T, hooks: C
210210

211211
// render chart
212212
await render();
213+
214+
if (chart) {
215+
await onUpdated?.(chart);
216+
}
213217
}
214218

215219
scope.run(() => {

0 commit comments

Comments
 (0)