Files
Momento/memento-note/components
sepehr 547c5ffecb
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 44s
fix: stop triggerRefresh() after note creation to prevent stale cache overwrite in production
In production (Docker/Next.js standalone), getAllNotes() can return cached results
when called immediately after createNote(skipRevalidation:true). This caused newly
created notes to disappear after the cache reload overwrote the optimistic local state.

Fix: remove triggerRefresh() from both handleCreateNote (NotesTabsView) and
handleNoteCreated (HomeClient). The note is already added optimistically to local
state and does not need a server round-trip.
2026-05-02 20:28:03 +02:00
..