We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3582b commit 3073f60Copy full SHA for 3073f60
packages/firestore/src/local/indexeddb_persistence.ts
@@ -412,8 +412,16 @@ export class IndexedDbPersistence implements Persistence {
412
})
413
.catch(e => {
414
if (!this.allowTabSynchronization) {
415
- throw e;
416
- }
+ if (e.name === 'IndexedDbTransactionError') {
+ logDebug(LOG_TAG, "Failed to extend owner lease: ", e);
417
+ // Proceed in primary mode since the client was not initialized
418
+ // to support multi-tab. Any subsequent access to IndexedDB will
419
+ // verify the lease.
420
+ return true;
421
+ } else {
422
+ throw e;
423
+ }
424
425
426
logDebug(
427
LOG_TAG,
0 commit comments