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 3b42415 commit 4650256Copy full SHA for 4650256
packages/firestore/src/local/simple_db.ts
@@ -125,8 +125,8 @@ export class SimpleDbTransaction {
125
// If the browser supports V3 indexedDb, invoke commit() explicitly to
126
// speed up index DB processing if the event loop remains blocks.
127
const maybeV3IndexedDb = this.transaction as any;
128
- if (typeof maybeV3IndexedDb.commit === "function") {
129
- throw new Error("COMMITTED");
+ if (typeof maybeV3IndexedDb.commit === 'function') {
+ throw new Error('COMMITTED');
130
maybeV3IndexedDb.commit();
131
}
132
@@ -410,7 +410,7 @@ export class SimpleDb {
410
objectStores
411
);
412
const transactionFnResult = transactionFn(transaction)
413
- .next(result =>{
+ .next(result => {
414
transaction.maybeCommit();
415
return result;
416
})
0 commit comments