mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
fix(pwa): fail offline mutations fast instead of pausing + silent write loss
Mutations ran in TanStack's default 'online' network mode, which PAUSES a write fired offline: isPending stays true forever, onError never fires, and the paused mutation is dropped on reload — a health entry vanishes with no 'not saved' signal. Switch mutations to 'always' network mode so an offline write rejects immediately and the form surfaces an honest failure, and add a global OfflineMutationToaster backstop for call sites without their own onError. Correct the offline banner copy, which promised changes would auto-save.
This commit is contained in:
1 parent
a53dd2b59c
commit
081bb2289d
9 files changed
+144
-18
No files matched your search
+2
-1
@@ -210,7 +210,8 @@
|
||||
"backToDashboard": "Zurück zum Dashboard"
|
||||
},
|
||||
"offlineBanner": {
|
||||
"message": "Keine Verbindung — Änderungen werden gespeichert, sobald du wieder online bist.",
|
||||
"message": "Keine Verbindung — Änderungen können erst gespeichert werden, wenn du wieder online bist.",
|
||||
"saveFailed": "Speichern fehlgeschlagen — du bist offline. Bitte versuche es erneut, sobald du wieder online bist.",
|
||||
"showingCached": "Zeigt deine zuletzt synchronisierten Daten."
|
||||
},
|
||||
"demoBanner": {
|
||||
|
||||
Reference in new issue
Block a user