File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/firestore/src/core Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1697,11 +1697,7 @@ async function loadBundleImpl(
16971697
16981698 task . _updateProgress ( bundleInitialProgress ( metadata ) ) ;
16991699
1700- const loader = new BundleLoader (
1701- metadata ,
1702- syncEngine . localStore ,
1703- reader . serializer
1704- ) ;
1700+ const loader = new BundleLoader ( metadata , reader . serializer ) ;
17051701 let element = await reader . nextElement ( ) ;
17061702 while ( element ) {
17071703 debugAssert (
@@ -1716,7 +1712,7 @@ async function loadBundleImpl(
17161712 element = await reader . nextElement ( ) ;
17171713 }
17181714
1719- const result = await loader . complete ( ) ;
1715+ const result = await loader . completeAndStoreAsync ( syncEngine . localStore ) ;
17201716 await syncEngineEmitNewSnapsAndNotifyLocalStore (
17211717 syncEngine ,
17221718 result . changedDocs ,
You can’t perform that action at this time.
0 commit comments