File tree 2 files changed +8
-3
lines changed
packages/firestore/src/core 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ ---
4
+
5
+ Queries are now send to the backend before the SDK starts local processing, which reduces overall Query latency.
Original file line number Diff line number Diff line change @@ -314,6 +314,9 @@ export async function syncEngineListen(
314
314
syncEngineImpl . localStore ,
315
315
queryToTarget ( query )
316
316
) ;
317
+ if ( syncEngineImpl . isPrimaryClient ) {
318
+ remoteStoreListen ( syncEngineImpl . remoteStore , targetData ) ;
319
+ }
317
320
318
321
const status = syncEngineImpl . sharedClientState . addLocalQueryTarget (
319
322
targetData . targetId
@@ -325,9 +328,6 @@ export async function syncEngineListen(
325
328
targetId ,
326
329
status === 'current'
327
330
) ;
328
- if ( syncEngineImpl . isPrimaryClient ) {
329
- remoteStoreListen ( syncEngineImpl . remoteStore , targetData ) ;
330
- }
331
331
}
332
332
333
333
return viewSnapshot ;
You can’t perform that action at this time.
0 commit comments