Skip to content

Commit 31c1bf4

Browse files
Using readWrite query mode for (#1280)
1 parent 9c7354f commit 31c1bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/local/local_store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export class LocalStore {
706706
*/
707707
// PORTING NOTE: `keepPersistedQueryData` is multi-tab only.
708708
releaseQuery(query: Query, keepPersistedQueryData: boolean): Promise<void> {
709-
const mode = keepPersistedQueryData ? 'readonly' : 'readwrite-primary';
709+
const mode = keepPersistedQueryData ? 'readwrite' : 'readwrite-primary';
710710
return this.persistence.runTransaction('Release query', mode, txn => {
711711
return this.queryCache
712712
.getQueryData(txn, query)

0 commit comments

Comments
 (0)