apache / apache/pouchdb

destroying idb instance and then replicating find index results in idb blocked event

Open
#8,735 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue
Sometimes in my app I need to destroy my database before replicating. (If I don't need to do this, I would be happy to learn a workaround, but it seems that if I recreate the server DB, the replication won't load the new changes.) When I replicated after adding a find index, I got an error log "this should never happen" due to an IndexedDB blocked event.

### Info
- Environment: Browser
- Platform: Chrome
- Adapter: indexeddb
- Server: PouchDB Server

### Reproduce
https://github.com/Eduardogbg/pouch-idb-blocked

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.