Skip to content

Stop RealTimeUpdater from recreating its interval on every data point #981

Description

@RUKAYAT-CODER

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.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions