You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing a delay in updating the "current time" indicator in our session view. Despite polling data every 10 seconds and using useEffect to set the current time frequently, the current time line on the calendar only moves every minute. This causes the timeline and session highlight to be out of sync with real time.
Problem: The current time line (or the time indicator) does not update as expected in real-time, despite setting a 1-second interval to update the current time (selectedDate). The calendar or session view is visually delayed, even though the polling is occurring every 10 seconds.
Expected Behavior: The current time line should smoothly update every second, or at least much more frequently, to stay in sync with real time.
Current Setup: We are fetching data every 10 seconds and updating the time line every second, but it still feels like there’s a delay (the line appears to move every minute rather than every second).
What might be causing the delay in the current time line updates?
Are there any known limitations with React’s useEffect or setInterval that could prevent frequent updates from showing in the UI?
Could we optimize the polling and time updates to better sync the timeline with real time?
The text was updated successfully, but these errors were encountered:
Issue Description:
We are experiencing a delay in updating the "current time" indicator in our session view. Despite polling data every 10 seconds and using useEffect to set the current time frequently, the current time line on the calendar only moves every minute. This causes the timeline and session highlight to be out of sync with real time.
Code :
Problem: The current time line (or the time indicator) does not update as expected in real-time, despite setting a 1-second interval to update the current time (selectedDate). The calendar or session view is visually delayed, even though the polling is occurring every 10 seconds.
Expected Behavior: The current time line should smoothly update every second, or at least much more frequently, to stay in sync with real time.
Current Setup: We are fetching data every 10 seconds and updating the time line every second, but it still feels like there’s a delay (the line appears to move every minute rather than every second).
What might be causing the delay in the current time line updates?
Are there any known limitations with React’s useEffect or setInterval that could prevent frequent updates from showing in the UI?
Could we optimize the polling and time updates to better sync the timeline with real time?
The text was updated successfully, but these errors were encountered: