simpl-liste/src
le king fu 3cf8be3dcf fix(sync): bound the wait on the persisted settings before the inbox repair
zustand's persist never finishes a failed load (a storage that throws, or
corrupted JSON under simpl-liste-settings): onFinishHydration is never
called and hasHydrated stays false. whenSettingsHydrated waited for it
without bound, so repairInbox never settled and the splash screen stayed
up at every launch (review of PR #164).

- onRehydrateStorage records the load error.
- whenSettingsHydrated goes through waitForHydration (src/lib/hydration.ts,
  pure, node-tested), which rejects on that error or after 5 s. The
  rejection skips the repair through the existing catch of prepareInbox,
  and ensureInbox and the startup go on.
- tests/hydration.test.mjs also pins the failure mode against the zustand
  persist middleware of the repo; the smoke test locks the store wiring
  (mutation R6 of the review now fails it).

Refs #152

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:35:06 -04:00
..
components feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
db fix(sync): read the app inbox from the database and repair split devices 2026-10-25 20:20:24 -04:00
hooks feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
i18n feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
lib fix(sync): bound the wait on the persisted settings before the inbox repair 2026-10-25 20:35:06 -04:00
services fix(sync): read the app inbox from the database and repair split devices 2026-10-25 20:20:24 -04:00
shared fix: remove duplicate RecurrenceType definition in shared/types (#34) 2026-04-06 10:39:12 -04:00
stores fix(sync): bound the wait on the persisted settings before the inbox repair 2026-10-25 20:35:06 -04:00
theme feat: extract shared types, colors, priority and recurrence (#34) 2026-04-06 10:38:16 -04:00
widgets perf(widget): cut expand/collapse tap latency (native patches + light headless path) 2026-07-19 16:41:47 -04:00
global.css feat: initial Simpl-Liste MVP 2026-02-20 19:28:42 -05:00