diff options
| author | Fuwn <[email protected]> | 2026-02-09 23:32:00 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-09 23:32:00 -0800 |
| commit | e2543a0d1ca7b7014bcc34fafb68dfdea792da75 (patch) | |
| tree | 3e3fe4e6c36d458c5e602cb74ec6ccca8843ec8a /apps/web/lib/api-auth.ts | |
| parent | feat: offline support tier 3 — mutation queue and image caching (diff) | |
| download | asa.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