Overview
The simulation effect at src/components/dashboard/RealTimeUpdater.tsx (lines 87-116) lists data in its dependency array, so the setInterval is torn down and recreated on every added data point, defeating the fixed interval and causing timer drift. Use a ref for data inside the interval callback and drop it from the deps.
Overview
The simulation effect at src/components/dashboard/RealTimeUpdater.tsx (lines 87-116) lists data in its dependency array, so the setInterval is torn down and recreated on every added data point, defeating the fixed interval and causing timer drift. Use a ref for data inside the interval callback and drop it from the deps.