Skip to content

Commit b107e04

Browse files
authored
Remove an assert and replace it with call to updateTrackedLimbos (#2893)
1 parent 507da7a commit b107e04

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/firestore/src/core/sync_engine.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,8 @@ export class SyncEngine implements RemoteSyncer, SharedClientStateSyncer {
274274
/* updateLimboDocuments= */ this.isPrimary === true,
275275
synthesizedTargetChange
276276
);
277-
debugAssert(
278-
viewChange.limboChanges.length === 0,
279-
'View returned limbo docs before target ack from the server.'
280-
);
277+
this.updateTrackedLimbos(targetId, viewChange.limboChanges);
278+
281279
debugAssert(
282280
!!viewChange.snapshot,
283281
'applyChanges for new view should always return a snapshot'

0 commit comments

Comments
 (0)