File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
packages/firestore/src/core Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export function bundleSuccessProgress(
143
143
export class BundleLoadResult {
144
144
constructor (
145
145
readonly progress : firestore . LoadBundleTaskProgress ,
146
- readonly changedDocs ? : MaybeDocumentMap
146
+ readonly changedDocs : MaybeDocumentMap
147
147
) { }
148
148
}
149
149
Original file line number Diff line number Diff line change @@ -1432,15 +1432,13 @@ async function loadBundleImpl(
1432
1432
}
1433
1433
1434
1434
const result = await loader . complete ( ) ;
1435
- if ( result . changedDocs ) {
1436
- // TODO(b/160876443): This currently raises snapshots with
1437
- // `fromCache=false` if users already listen to some queries and bundles
1438
- // has newer version.
1439
- await syncEngine . emitNewSnapsAndNotifyLocalStore (
1440
- result . changedDocs ,
1441
- /* remoteEvent */ undefined
1442
- ) ;
1443
- }
1435
+ // TODO(b/160876443): This currently raises snapshots with
1436
+ // `fromCache=false` if users already listen to some queries and bundles
1437
+ // has newer version.
1438
+ await syncEngine . emitNewSnapsAndNotifyLocalStore (
1439
+ result . changedDocs ,
1440
+ /* remoteEvent */ undefined
1441
+ ) ;
1444
1442
1445
1443
// Save metadata, so loading the same bundle will skip.
1446
1444
await saveBundle ( syncEngine . localStore , metadata ) ;
You can’t perform that action at this time.
0 commit comments