Skip to content

Commit 739a0d7

Browse files
committed
update comment
1 parent 15ec65f commit 739a0d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/src/core/sync_engine_impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,8 +1096,8 @@ export async function syncEngineEmitNewSnapsAndNotifyLocalStore(
10961096
if (viewSnapshot || remoteEvent) {
10971097
if (syncEngineImpl.isPrimaryClient) {
10981098
// Query state is set to `current` if:
1099-
// - The is a view change and it is up-to-date, or,
1100-
// - We received a global snapshot and the Target is current
1099+
// - There is a view change and it is up-to-date, or,
1100+
// - There is a global snapshot, the Target is current, and no changes to be resolved
11011101
const isCurrent = viewSnapshot
11021102
? !viewSnapshot.fromCache
11031103
: remoteEvent?.targetChanges.get(queryView.targetId)?.current;

0 commit comments

Comments
 (0)