summaryrefslogtreecommitdiff
path: root/Shared
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 17:41:34 -0500
committerChristian Cleberg <[email protected]>2026-04-13 17:41:34 -0500
commitb423f8a1cf3141d0b15ee899c1c5fe535ff982e9 (patch)
tree7cd72192d3d6f568e4c50860caa0cbc843b53811 /Shared
parent30decf6d9b6b95277cbd8b8a7d9e23d9ce5413ca (diff)
downloadhutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.tar.gz
hutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.tar.bz2
hutch-b423f8a1cf3141d0b15ee899c1c5fe535ff982e9.zip
fix: suppress false "network request failed" error on ticket list scroll
When scrolling through a large tracker, SwiftUI's .task modifier cancels in-flight pagination requests as rows leave the screen. URLSession responds with URLError(-999), which was being surfaced to the user as "The network request failed. Please try again." — even though the cancellation is expected and benign. Guard against Task.isCancelled in the catch block so cancellations are silently ignored; isLoadingMore is still reset unconditionally so the next scroll attempt retries from the same cursor position. Fixes: https://todo.sr.ht/~ccleberg/hutch/61
Diffstat (limited to 'Shared')
0 files changed, 0 insertions, 0 deletions