summaryrefslogtreecommitdiff
path: root/apps/web/lib/api-auth.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-09 23:32:00 -0800
committerFuwn <[email protected]>2026-02-09 23:32:00 -0800
commite2543a0d1ca7b7014bcc34fafb68dfdea792da75 (patch)
tree3e3fe4e6c36d458c5e602cb74ec6ccca8843ec8a /apps/web/lib/api-auth.ts
parentfeat: offline support tier 3 — mutation queue and image caching (diff)
downloadasa.news-e2543a0d1ca7b7014bcc34fafb68dfdea792da75.tar.xz
asa.news-e2543a0d1ca7b7014bcc34fafb68dfdea792da75.zip
fix: use online networkMode for offline mutations instead of offlineFirst
offlineFirst fires the mutation once even when offline, causing a network error that triggers onError and rolls back the optimistic update. online mode pauses the mutation without calling mutationFn, keeping the optimistic state intact until reconnection.
Diffstat (limited to 'apps/web/lib/api-auth.ts')
0 files changed, 0 insertions, 0 deletions