Board: Fix pending changes lost when leaving the editor during an in-flight save
The unmount effect in components/board/BoardEditor.tsx fires a final PUT with versionRef.current but does not check inFlightRef, so if an autosave is still running it sends the same base version, the first request bumps the version and the final one gets a 409 that nobody sees; the last edits are lost. It also only uses keepalive for bodies under 60 KB and never shows an error. Miro saves continuously with no such window (board history in https://help.miro.com/hc/articles/360021668819 is a safety net, which we also lack). First scope: on unmount, wait for or chain after the in-flight request and use the returned version, and persist unsaved scenes to localStorage so the next open can offer to restore them. Priority: high. Effort: S. Compared with Miro.
Comentários 0
Ainda sem comentários.
Entre para comentar