Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up enableSiblingPrerendering flag #32319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jackpope
Copy link
Contributor

@jackpope jackpope commented Feb 6, 2025

No description provided.

@react-sizebot
Copy link

react-sizebot commented Feb 6, 2025

Comparing: 44c3d3d...0bc39f8

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 = 515.48 kB 515.43 kB = 92.04 kB 92.03 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 = 558.52 kB 558.46 kB = 99.27 kB 99.25 kB
facebook-www/ReactDOM-prod.classic.js = 636.88 kB 635.86 kB = 111.92 kB 111.78 kB
facebook-www/ReactDOM-prod.modern.js = 627.20 kB 626.18 kB = 110.34 kB 110.20 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOMTesting-dev.classic.js = 1,137.50 kB 1,134.90 kB = 191.11 kB 190.78 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,128.36 kB 1,125.76 kB = 189.41 kB 189.07 kB
facebook-www/ReactDOM-dev.classic.js = 1,120.59 kB 1,118.00 kB = 187.27 kB 186.93 kB
facebook-www/ReactDOM-dev.modern.js = 1,111.45 kB 1,108.85 kB = 185.54 kB 185.19 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 679.74 kB 678.07 kB = 110.82 kB 110.59 kB
facebook-react-native/react-dom/cjs/ReactDOMProfiling-dev.js = 1,011.66 kB 1,009.15 kB = 170.27 kB 169.94 kB
react-native/implementations/ReactFabric-dev.fb.js = 673.51 kB 671.83 kB = 109.71 kB 109.48 kB
facebook-www/ReactART-dev.classic.js = 668.83 kB 667.15 kB = 106.35 kB 106.11 kB
facebook-react-native/react-dom/cjs/ReactDOMClient-dev.js = 995.32 kB 992.80 kB = 167.43 kB 167.10 kB
facebook-www/ReactART-dev.modern.js = 659.33 kB 657.66 kB = 104.50 kB 104.27 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 409.79 kB 408.29 kB = 70.59 kB 70.34 kB
react-native/implementations/ReactFabric-profiling.fb.js = 404.82 kB 403.32 kB = 69.77 kB 69.56 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js = 384.33 kB 382.85 kB = 66.77 kB 66.52 kB
facebook-www/ReactART-prod.classic.js = 383.65 kB 382.17 kB = 64.35 kB 64.15 kB
react-native/implementations/ReactFabric-prod.fb.js = 379.36 kB 377.88 kB = 65.92 kB 65.69 kB
facebook-www/ReactART-prod.modern.js = 373.71 kB 372.23 kB = 62.76 kB 62.53 kB

Generated by 🚫 dangerJS against e0e1662


...(gate('enableSiblingPrerendering') ? ['Suspend! [Hi]'] : []),
]);
await waitForAll(['Suspend! [Hi]', 'Loading...', 'Suspend! [Hi]']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth adding comments to all these cases like:

await waitForAll([
'Suspend! [Hi]', 
'Loading...', 

// pre-warming 
'Suspend! [Hi]']
);

@@ -2011,7 +2006,7 @@ function handleThrow(root: FiberRoot, thrownValue: any): void {
// TODO: Suspending the work loop during the render phase is
// currently not compatible with sibling prerendering. We will add
// this optimization back in a later step.
!enableSiblingPrerendering &&
false &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

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