Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gui] synchronization sometimes breaks #722

Open
2 of 3 tasks
dskvr opened this issue Dec 22, 2024 · 0 comments
Open
2 of 3 tasks

[gui] synchronization sometimes breaks #722

dskvr opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dskvr
Copy link
Collaborator

dskvr commented Dec 22, 2024

If a tab goes idle while live sync is running, then the lastCompleteSync timestamp will get updated onActive without any fresh data due to a browser-(terminated || paused [browser dependent]) worker.

Upon the tab becoming active again, the worker might resume (browser dependent behavior), and the live sync will continue, which includes clearing "stale" checks from the stores. However, since it was idle, almost all the checks from the stores will be removed, and wihtout a refresh or wipe, it would take the duration of the selected monitor's frequencies to repopulate the stores.

Need idle detection that plays nicely with tab leader management to...

  • pause livesync if enabled
  • on active, run full sync (fetch) and resume livesync if it was enabled; should reconcile dataset
  • add condition to removeStaleChecks so that it does not run until dataset is repopulated (to avoid clearing stores and starting from zero)
@dskvr dskvr added the bug Something isn't working label Dec 22, 2024
@dskvr dskvr changed the title [gui] synchronization is broken [gui] synchronization sometimes breaks Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant