Skip to content

fix(timer): pause rest timer interval when app goes to background#6

Merged
alvarotorresc merged 1 commit into
mainfrom
fix/rest-timer-background
Mar 4, 2026
Merged

fix(timer): pause rest timer interval when app goes to background#6
alvarotorresc merged 1 commit into
mainfrom
fix/rest-timer-background

Conversation

@alvarotorresc

Copy link
Copy Markdown
Owner

The rest timer setInterval kept firing while the app was in background, causing unnecessary state updates and premature finish detection. Now the interval is cleared on background/inactive and restarted on foreground return, with proper time recalculation using Date.now timestamps.

The rest timer setInterval kept firing while the app was in background,
causing unnecessary state updates and premature finish detection. Now the
interval is cleared on background/inactive and restarted on foreground
return, with proper time recalculation using Date.now timestamps.
@alvarotorresc alvarotorresc self-assigned this Mar 4, 2026
@alvarotorresc alvarotorresc added the bug Something isn't working label Mar 4, 2026
@alvarotorresc alvarotorresc merged commit 4134466 into main Mar 4, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant