App state cleanups: stale-closure save, silent localStorage failure, missing default key #44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App.jsx:333-422: the first-save path buildsloadedStatefrom the effect's closed-overstate; edits made while the initial fetch is in flight are omitted from the persisted snapshot. Read from astateRef.current(kept in sync via effect) at save time instead.App.jsx:165-168: localStorage persistence failures are swallowed (catch {}); surface a one-time banner so localStorage-only users know persistence stopped.App.jsx:95-97: addcircuitWholeHomeExclusions: {}to DEFAULT_STATE alongside its three sibling maps (call sites currently guard with|| {}).Acceptance criteria
(Audit finding F-24, 2026-07-16 — Severity: Low, Confidence: Medium)