mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
* fix: Recover from closed IndexedDB connections in store persistence StorePersistence cached a single IDBDatabase forever, so once the browser or another tab closed the connection every subsequent hydrate, flush and clear threw against a dead handle. - Close and forget the connection on versionchange, so another tab is never blocked from deleting or upgrading the database - Discard the cached connection on close, open error and blocked, and retry once against a fresh connection when one was closed underneath us - Close open connections before deleteAllDatabases removes them, which also stops logout recreating the databases it just deleted Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix: Cancel pending writes when store persistence is disabled A debounced flush scheduled before disabling would still fire, reopening and recreating the database that deleteAllDatabases had just removed.