From 739a0d778f10a931a221b2ebaf94b9487db11dd7 Mon Sep 17 00:00:00 2001 From: milaGGL <107142260+milaGGL@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:12:36 -0400 Subject: [PATCH] update comment --- packages/firestore/src/core/sync_engine_impl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/firestore/src/core/sync_engine_impl.ts b/packages/firestore/src/core/sync_engine_impl.ts index ed5284414ce..1f93db4f8bc 100644 --- a/packages/firestore/src/core/sync_engine_impl.ts +++ b/packages/firestore/src/core/sync_engine_impl.ts @@ -1096,8 +1096,8 @@ export async function syncEngineEmitNewSnapsAndNotifyLocalStore( if (viewSnapshot || remoteEvent) { if (syncEngineImpl.isPrimaryClient) { // Query state is set to `current` if: - // - The is a view change and it is up-to-date, or, - // - We received a global snapshot and the Target is current + // - There is a view change and it is up-to-date, or, + // - There is a global snapshot, the Target is current, and no changes to be resolved const isCurrent = viewSnapshot ? !viewSnapshot.fromCache : remoteEvent?.targetChanges.get(queryView.targetId)?.current;