📈 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
update live visitors on show change
Blue Mouse0d43a021640f
diff --git a/src/pages/Project/View/components/LiveVisitorsDropdown.jsx b/src/pages/Project/View/components/LiveVisitorsDropdown.jsxindex 74fb540d1..a3a197809 100644--- a/src/pages/Project/View/components/LiveVisitorsDropdown.jsx+++ b/src/pages/Project/View/components/LiveVisitorsDropdown.jsx@@ -28,8 +28,10 @@ const LiveVisitorsDropdown = ({ live, projectId }) => {}useEffect(() => {- getLiveVisitors()- }, []) // eslint-disable-line react-hooks/exhaustive-deps+ if (show) {+ getLiveVisitors()+ }+ }, [show]) // eslint-disable-line react-hooks/exhaustive-depsreturn (<>