Closed arv closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/rocicorp/replicache/Fyukp7EdZq3J72biaBqXg3B8DE5R
✅ Preview: https://replicache-git-fork-arv-idb-name-rocicorp.vercel.app
LGTM
For Simplified Dueling Dags we need to ensure that different tabs running different versions of Replicache do not interact with IDB data it does not know how to read/write.
To achieve this the name if the IDB database now contains the
REPLICACHE_FORMAT_VERSION
(which is currently at3
).The IDB name also contains the
schemaVersion
som if the schema changes a fresh IDB database is used. The motivation is the same. Multiple tabs with different schemaVersions should not interact with the same IDB database.BREAKING CHANGE
Towards #671