Skip to content

Fix stale snooze state in alarm list#678

Open
bjorkert wants to merge 1 commit into
devfrom
fix/alarm-list-stale-snooze
Open

Fix stale snooze state in alarm list#678
bjorkert wants to merge 1 commit into
devfrom
fix/alarm-list-stale-snooze

Conversation

@bjorkert

@bjorkert bjorkert commented Jun 20, 2026

Copy link
Copy Markdown
Member

The alarm list sorted alarms into Snoozed vs. Active by comparing snoozedUntil against Date() at render time, but nothing re-rendered the view once a snooze expired. A lapsed snooze could sit in the Snoozed section for hours while the alarm editor correctly showed it as not snoozed.

Refresh a now snapshot on onAppear and when the app returns to the foreground, and route the snooze comparisons (both sections and the row label) through it.

The alarm list categorized snoozed vs. active alarms against Date()
sampled at render time, but nothing re-rendered the view when a snooze
expired. A lapsed snooze could stay in the Snoozed section for hours
while the editor correctly showed it as not snoozed.

Refresh a now snapshot on appear and on returning to the foreground,
and drive all snooze comparisons through it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant