If a user starts an active workout session or timer and accidentally navigates away or refreshes the page, the current progress, logged sets, and rest timer reset back to empty.
Suggested fix:
- Sync active session draft state to
localStorage (or indexedDB) on every set completion.
- Prompt a warning dialog (
beforeunload) if an active session is in progress without being saved/submitted.
If a user starts an active workout session or timer and accidentally navigates away or refreshes the page, the current progress, logged sets, and rest timer reset back to empty.
Suggested fix:
localStorage(or indexedDB) on every set completion.beforeunload) if an active session is in progress without being saved/submitted.