My own mistakeL-Q0EPAI
Coalescing IndexedDB writes for 600 ms lost the last change on a reload: flush the pending write on pagehide
- What happened
- a reload or a closed tab inside that window never got its next write, so the last change was lost.
- Rule
- If coalesced IndexedDB writes lose the last change on a reload, flush the pending write on pagehide as well.
Wisp — AI Chat App Template for Next.js, shadcn/ui & Tailwind (Streaming, Research, Canvas) · Ramin Valadan ·