Skip to content

Commit 4d69809

Browse files
committed
Fix: check .shouldReplay on completeReplayRecovery() return object
completeReplayRecovery() now returns a ReplayRecoveryCompletion object instead of a boolean. The caller was using the return value directly in a truthiness check, which always evaluated to true (non-null object), causing replay recovery to always trigger regardless of shouldReplay.
1 parent a41968d commit 4d69809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function EventRouter() {
440440
return;
441441
}
442442

443-
if (!disposed && recovery.completeReplayRecovery()) {
443+
if (!disposed && recovery.completeReplayRecovery().shouldReplay) {
444444
void recoverFromSequenceGap();
445445
}
446446
};

0 commit comments

Comments
 (0)