mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
Two issues caused checked items to revert after closing: 1. loadNotes() blindly overwrote the store with notes.set(), so a stale response from the periodic sync (every 30s) could replace a just-saved note with older server data. Now merges by version number, keeping the higher-versioned note. 2. Checklist component ignored external content prop changes (from sync or history restore). Added $effect that re-parses items when the content prop changes from an external source, using lastEmitted tracking to distinguish self-originated vs external updates. https://claude.ai/code/session_01TdPpATUkmdY7DhBkmqrvWs