Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
milaGGL committed Jun 27, 2024
1 parent 15ec65f commit 739a0d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/firestore/src/core/sync_engine_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 739a0d7

Please sign in to comment.