Skip to content

Commit

Permalink
Fix gating for alwaysThrottleDisappearingFallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Mar 25, 2024
1 parent 5a75f9e commit 5dbe02c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,14 @@ describe('ReactSuspenseWithNoopRenderer', () => {
await resolveText('B');
await waitForPaint(['B']);

if (gate(flags => flags.alwaysThrottleRetries)) {
if (
// This behavior only applies if both flags are enabled.
gate(
flags =>
flags.alwaysThrottleDisappearingFallbacks &&
flags.alwaysThrottleRetries,
)
) {
// B should not commit yet. Even though it's been a long time since its
// fallback was shown, it hasn't been long since A appeared. So B's
// appearance is throttled to reduce jank.
Expand Down

0 comments on commit 5dbe02c

Please sign in to comment.