We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf93a38 + 423fa88 commit 0ca8ce1Copy full SHA for 0ca8ce1
packages/firestore/src/core/sync_engine_impl.ts
@@ -314,6 +314,9 @@ export async function syncEngineListen(
314
syncEngineImpl.localStore,
315
queryToTarget(query)
316
);
317
+ if (syncEngineImpl.isPrimaryClient) {
318
+ remoteStoreListen(syncEngineImpl.remoteStore, targetData);
319
+ }
320
321
const status = syncEngineImpl.sharedClientState.addLocalQueryTarget(
322
targetData.targetId
@@ -325,9 +328,6 @@ export async function syncEngineListen(
325
328
targetId,
326
329
status === 'current'
327
330
- if (syncEngineImpl.isPrimaryClient) {
- remoteStoreListen(syncEngineImpl.remoteStore, targetData);
- }
331
}
332
333
return viewSnapshot;
0 commit comments