Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema migration issue - multiple tabs #1865

Open
gligorevic opened this issue Dec 2, 2024 · 0 comments
Open

Schema migration issue - multiple tabs #1865

gligorevic opened this issue Dec 2, 2024 · 0 comments

Comments

@gligorevic
Copy link

When multiple tabs are open and a schema version update is triggered (with migrations enabled), only one tab migrates successfully. The other tabs enter an infinite loop, resulting in the following error message:

idb performSave failed: TypeError: Cannot read properties of null (reading 'forEach')
at incremental-indexeddb-adapter.js:519:21
at Array.forEach ()
at k.d [as getData] (incremental-indexeddb-adapter.js:512:24)
at k.get [as data] (lokijs.wmelon.js:1314:31)
at k.ensureId (lokijs.wmelon.js:3397:23)
at t._getChunk (incremental-indexeddb-adapter.js:76:18)
at f (incremental-indexeddb-adapter.js:316:32)
at u (incremental-indexeddb-adapter.js:337:13)
at Array.forEach ()
at t._putInChunks (incremental-indexeddb-adapter.js:370:24)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant