Skip to content

Commit e814049

Browse files
committed
rerender on every change
1 parent 3390ba7 commit e814049

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

view/src/components/charts/Line.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
onMount(async () => {
3636
const { default: ApexCharts } = await import('apexcharts');
3737
const chart = new ApexCharts(document.querySelector('#chart-line'), options);
38-
chart.render();
38+
$effect(() => {
39+
options;
40+
chart.render();
41+
});
3942
});
4043
</script>
4144

0 commit comments

Comments
 (0)