Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jun 11, 2025

Summary

Fixes a deopt to client-render if we throttled the reveal of a boundary that contained other boundaries that completed before the throttled reveal.
This got reported as "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." which was a red herring in this case.

How did you test this change?

  • Added repro to VT fixture. No longer errors with "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."

@eps1lon eps1lon requested a review from sebmarkbage June 11, 2025 19:15
@eps1lon eps1lon changed the title Repro [Fizz] Delay detachment of completed boundaries until reveal Jun 11, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jun 11, 2025
@react-sizebot
Copy link

Comparing: 888ea60...012e490

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.47 kB 530.47 kB = 93.64 kB 93.64 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 651.56 kB 651.56 kB = 114.75 kB 114.75 kB
facebook-www/ReactDOM-prod.classic.js = 674.98 kB 674.98 kB = 118.81 kB 118.81 kB
facebook-www/ReactDOM-prod.modern.js = 665.46 kB 665.46 kB = 117.23 kB 117.22 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/unstable_server-external-runtime.js +0.21% 18.25 kB 18.29 kB +0.29% 4.11 kB 4.13 kB

Generated by 🚫 dangerJS against 012e490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants