fix: stop reporting cancelled calendar loads as errors #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/screenshot-issue-investigation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The header showed "Couldn't load Personio calendar: cancelled" even though the Personio events loaded correctly.
Cause
.task(id: vm.weekAnchor)restarted the calendar reload wheneverweekAnchorchanged. Clicking Today sets it toDate(), so the reload restarted even when the visible week stayed the same.URLError.cancelled. The week was unchanged, so the catch block'sisVisibleWeekcheck passed and the cancellation was shown as an error.calendarNote, so the Personio error stayed after the replacement load succeeded.Fix
vm.weekStart, so it restarts only when the week changes.CancellationError/URLError.cancelledinloadCalendarEventsandloadPersonioEvents.personioNote, cleared at the start of each Personio load and inclearPersonioState().Verification
Debug build succeeds. No automated tests exist in this repo.
🤖 Generated with Claude Code