File tree 1 file changed +2
-6
lines changed
packages/firestore/src/core 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1110,14 +1110,10 @@ export class MultiTabSyncEngine extends SyncEngine
1110
1110
const queries = this . queriesByTarget . get ( targetId ) ;
1111
1111
1112
1112
if ( queries && queries . length !== 0 ) {
1113
- // For queries that have a local View, we need to update their state
1114
- // in LocalStore (as the resume token and the snapshot version
1113
+ // For queries that have a local View, we fetch their current state
1114
+ // from LocalStore (as the resume token and the snapshot version
1115
1115
// might have changed) and reconcile their views with the persisted
1116
1116
// state (the list of syncedDocuments may have gotten out of sync).
1117
- await this . localStore . releaseTarget (
1118
- targetId ,
1119
- /*keepPersistedTargetData=*/ true
1120
- ) ;
1121
1117
targetData = await this . localStore . allocateTarget (
1122
1118
queries [ 0 ] . toTarget ( )
1123
1119
) ;
You can’t perform that action at this time.
0 commit comments