📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
queueMicrotask for isDestroyingRef.current
Blue Mouse10e85ee62042
diff --git a/web/app/ui/BillboardChart.tsx b/web/app/ui/BillboardChart.tsxindex 4cc75e078..2e732ba5b 100644--- a/web/app/ui/BillboardChart.tsx+++ b/web/app/ui/BillboardChart.tsx@@ -140,7 +140,12 @@ const BillboardChart = ({// ignore destroy errors}- isDestroyingRef.current = false+ // Keep isDestroyingRef true until next tick to catch any queued resize events+ // from billboard.js's internal handlers that may fire after destroy+ queueMicrotask(() => {+ isDestroyingRef.current = false+ })+if (onReady) onReady(null)}// eslint-disable-next-line react-hooks/exhaustive-deps