Skip to content

Commit

Permalink
Test showing mismatches after suspending force fallbacks to be shown (#…
Browse files Browse the repository at this point in the history
…28299)

While investigating #28285 I
found a possible bug in handling Suspense and mismatches. As the tests
show, if the first sibling in a boundary suspends, and the second has a
mismatch, we will NOT show a fallback. If the first sibling is a
mismatch, and the second sibling suspends, we WILL show a fallback.

[Here's a stackbliz showing the behavior on
Canary](https://stackblitz.com/edit/stackblitz-starters-bh3snf?file=src%2Fstyle.css,public%2Findex.html,src%2Findex.tsx).

This breakage was introduced by:
#26380. Before this PR, we would
not show a fallback in either case. That PR makes it so that we don't
pre-render siblings of suspended trees, so presumably, whatever
detection we had to avoid fallbacks on mismatches, requires knowing
there's a mismatch in the tree when we suspend.
  • Loading branch information
rickhanlonii authored Mar 26, 2024
1 parent 5a75f9e commit d303740
Showing 1 changed file with 769 additions and 0 deletions.
Loading

0 comments on commit d303740

Please sign in to comment.