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

Land enableSuspenseServerRenderer flag #24405

Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Apr 20, 2022

This flag is already enabled on all relevant surfaces. We can remove it.

This flag is already enabled on all relevant surfaces. We can remove it.
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 20, 2022
@sizebot
Copy link

sizebot commented Apr 20, 2022

Comparing: 4175f05...1f38d38

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.min.js = 131.52 kB 131.52 kB = 42.10 kB 42.10 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.79 kB 136.79 kB = 43.68 kB 43.68 kB
facebook-www/ReactDOM-prod.classic.js = 441.27 kB 441.27 kB = 80.48 kB 80.48 kB
facebook-www/ReactDOM-prod.modern.js = 426.52 kB 426.52 kB = 78.30 kB 78.30 kB
facebook-www/ReactDOMForked-prod.classic.js = 441.27 kB 441.27 kB = 80.48 kB 80.48 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js +3.77% 83.99 kB 87.16 kB +3.86% 26.17 kB 27.17 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js +3.77% 83.99 kB 87.16 kB +3.86% 26.17 kB 27.17 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js +3.73% 83.76 kB 86.88 kB +4.05% 25.77 kB 26.82 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js +3.73% 83.76 kB 86.88 kB +4.05% 25.77 kB 26.82 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js +3.57% 88.45 kB 91.61 kB +3.78% 27.51 kB 28.55 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js +3.54% 88.20 kB 91.33 kB +3.43% 27.21 kB 28.14 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js +3.39% 249.29 kB 257.74 kB +3.31% 45.49 kB 47.00 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js +3.33% 264.09 kB 272.89 kB +3.21% 47.82 kB 49.36 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +3.25% 621.28 kB 641.49 kB +3.24% 136.24 kB 140.66 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +3.25% 621.28 kB 641.49 kB +3.24% 136.24 kB 140.66 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js +3.22% 651.19 kB 672.15 kB +3.25% 137.77 kB 142.25 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js +3.22% 651.19 kB 672.15 kB +3.25% 137.77 kB 142.25 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js +3.18% 659.91 kB 680.90 kB +3.24% 142.98 kB 147.61 kB
facebook-www/ReactTestRenderer-dev.classic.js +3.13% 681.25 kB 702.57 kB +3.18% 146.91 kB 151.57 kB
facebook-www/ReactTestRenderer-dev.modern.js +3.13% 681.26 kB 702.59 kB +3.18% 146.91 kB 151.58 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +3.12% 646.83 kB 667.04 kB +3.14% 141.49 kB 145.93 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js +3.09% 678.05 kB 699.01 kB +3.18% 143.07 kB 147.62 kB
react-native/implementations/ReactFabric-prod.js +3.07% 278.65 kB 287.21 kB +2.84% 50.43 kB 51.87 kB
react-native/implementations/ReactNativeRenderer-prod.js +3.02% 285.63 kB 294.26 kB +2.86% 51.55 kB 53.03 kB
react-native/implementations/ReactFabric-profiling.js +2.96% 297.56 kB 306.36 kB +2.84% 53.58 kB 55.10 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +2.93% 293.77 kB 302.37 kB +2.80% 53.13 kB 54.62 kB
react-native/implementations/ReactFabric-prod.fb.js +2.92% 291.40 kB 299.92 kB +2.75% 52.82 kB 54.27 kB
react-native/implementations/ReactNativeRenderer-profiling.js +2.91% 304.60 kB 313.48 kB +2.82% 54.62 kB 56.16 kB
react-native/implementations/ReactNativeRenderer-dev.js +2.80% 750.03 kB 771.03 kB +2.83% 164.51 kB 169.16 kB
react-native/implementations/ReactFabric-dev.js +2.77% 740.58 kB 761.10 kB +2.81% 162.32 kB 166.88 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +2.76% 320.70 kB 329.54 kB +2.67% 57.35 kB 58.88 kB
react-native/implementations/ReactFabric-profiling.fb.js +2.75% 318.28 kB 327.05 kB +2.57% 57.04 kB 58.50 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +2.65% 792.27 kB 813.27 kB +2.67% 172.30 kB 176.91 kB
react-native/implementations/ReactFabric-dev.fb.js +2.61% 784.59 kB 805.11 kB +2.66% 170.48 kB 175.01 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +2.50% 1,006.48 kB 1,031.63 kB +2.18% 227.84 kB 232.81 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js +2.29% 136.66 kB 139.79 kB +2.26% 44.06 kB 45.06 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js +3.77% 83.99 kB 87.16 kB +3.86% 26.17 kB 27.17 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js +3.77% 83.99 kB 87.16 kB +3.86% 26.17 kB 27.17 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js +3.73% 83.76 kB 86.88 kB +4.05% 25.77 kB 26.82 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js +3.73% 83.76 kB 86.88 kB +4.05% 25.77 kB 26.82 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js +3.57% 88.45 kB 91.61 kB +3.78% 27.51 kB 28.55 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js +3.54% 88.20 kB 91.33 kB +3.43% 27.21 kB 28.14 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js +3.39% 249.29 kB 257.74 kB +3.31% 45.49 kB 47.00 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js +3.33% 264.09 kB 272.89 kB +3.21% 47.82 kB 49.36 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +3.25% 621.28 kB 641.49 kB +3.24% 136.24 kB 140.66 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +3.25% 621.28 kB 641.49 kB +3.24% 136.24 kB 140.66 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js +3.22% 651.19 kB 672.15 kB +3.25% 137.77 kB 142.25 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js +3.22% 651.19 kB 672.15 kB +3.25% 137.77 kB 142.25 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js +3.18% 659.91 kB 680.90 kB +3.24% 142.98 kB 147.61 kB
facebook-www/ReactTestRenderer-dev.classic.js +3.13% 681.25 kB 702.57 kB +3.18% 146.91 kB 151.57 kB
facebook-www/ReactTestRenderer-dev.modern.js +3.13% 681.26 kB 702.59 kB +3.18% 146.91 kB 151.58 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +3.12% 646.83 kB 667.04 kB +3.14% 141.49 kB 145.93 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js +3.09% 678.05 kB 699.01 kB +3.18% 143.07 kB 147.62 kB
react-native/implementations/ReactFabric-prod.js +3.07% 278.65 kB 287.21 kB +2.84% 50.43 kB 51.87 kB
react-native/implementations/ReactNativeRenderer-prod.js +3.02% 285.63 kB 294.26 kB +2.86% 51.55 kB 53.03 kB
react-native/implementations/ReactFabric-profiling.js +2.96% 297.56 kB 306.36 kB +2.84% 53.58 kB 55.10 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +2.93% 293.77 kB 302.37 kB +2.80% 53.13 kB 54.62 kB
react-native/implementations/ReactFabric-prod.fb.js +2.92% 291.40 kB 299.92 kB +2.75% 52.82 kB 54.27 kB
react-native/implementations/ReactNativeRenderer-profiling.js +2.91% 304.60 kB 313.48 kB +2.82% 54.62 kB 56.16 kB
react-native/implementations/ReactNativeRenderer-dev.js +2.80% 750.03 kB 771.03 kB +2.83% 164.51 kB 169.16 kB
react-native/implementations/ReactFabric-dev.js +2.77% 740.58 kB 761.10 kB +2.81% 162.32 kB 166.88 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +2.76% 320.70 kB 329.54 kB +2.67% 57.35 kB 58.88 kB
react-native/implementations/ReactFabric-profiling.fb.js +2.75% 318.28 kB 327.05 kB +2.57% 57.04 kB 58.50 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +2.65% 792.27 kB 813.27 kB +2.67% 172.30 kB 176.91 kB
react-native/implementations/ReactFabric-dev.fb.js +2.61% 784.59 kB 805.11 kB +2.66% 170.48 kB 175.01 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +2.50% 1,006.48 kB 1,031.63 kB +2.18% 227.84 kB 232.81 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js +2.29% 136.66 kB 139.79 kB +2.26% 44.06 kB 45.06 kB

Generated by 🚫 dangerJS against 1f38d38

@@ -108,20 +104,18 @@ function unwindWork(
}
case SuspenseComponent: {
popSuspenseContext(workInProgress);
if (enableSuspenseServerRenderer) {
Copy link
Collaborator Author

@acdlite acdlite Apr 20, 2022

Choose a reason for hiding this comment

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

I suppose some of these blocks could be wrapped with a supportsHydration condition instead to reduce to bundle size for non-DOM renderers

@@ -20,7 +20,6 @@ export const enableProfilerCommitHooks = __PROFILE__;
export const enableProfilerNestedUpdatePhase = __PROFILE__;
export const enableProfilerNestedUpdateScheduledHook = false;
export const enableUpdaterTracking = false;
export const enableSuspenseServerRenderer = false;
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible this will break tests?

Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing no since test-renderer doesn't do server rendering but it might be worth doing a test PR.

Copy link
Collaborator Author

@acdlite acdlite Apr 20, 2022

Choose a reason for hiding this comment

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

www uses the testing.www feature flags file anyway where this is already enabled

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

but I'll create a test diff once all of these land

@acdlite acdlite merged commit 392808a into facebook:main Apr 20, 2022
@acdlite acdlite changed the title Land enableClientRenderFallbackOnTextMismatch flag Land enableSuspenseServerRenderer flag Apr 20, 2022
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Apr 26, 2022
Summary:
This sync includes the following changes:
- **[bd4784c8f](facebook/react@bd4784c8f )**: Revert #24236 (Don't recreate the same fallback on the client if hydrating suspends) ([#24434](facebook/react#24434)) //<dan>//
- **[6d3b6d0f4](facebook/react@6d3b6d0f4 )**: forwardRef et al shouldn't affect if props reused ([#24421](facebook/react#24421)) //<Andrew Clark>//
- **[bd0813766](facebook/react@bd0813766 )**: Fix: useDeferredValue should reuse previous value ([#24413](facebook/react#24413)) //<Andrew Clark>//
- **[9ae80d6a2](facebook/react@9ae80d6a2 )**: Suppress hydration warnings when a preceding sibling suspends ([#24404](facebook/react#24404)) //<Josh Story>//
- **[0dc4e6663](facebook/react@0dc4e6663 )**: Land enableClientRenderFallbackOnHydrationMismatch ([#24410](facebook/react#24410)) //<Andrew Clark>//
- **[354772952](facebook/react@354772952 )**: Land enableSelectiveHydration flag ([#24406](facebook/react#24406)) //<Andrew Clark>//
- **[392808a1f](facebook/react@392808a1f )**: Land enableClientRenderFallbackOnTextMismatch flag ([#24405](facebook/react#24405)) //<Andrew Clark>//
- **[1e748b452](facebook/react@1e748b452 )**: Land enableLazyElements flag ([#24407](facebook/react#24407)) //<Andrew Clark>//
- **[4175f0593](facebook/react@4175f0593 )**: Temporarily feature flag numeric fallback for symbols ([#24401](facebook/react#24401)) //<Ricky>//
- **[a6d53f346](facebook/react@a6d53f346 )**: Revert "Clean up Selective Hydration / Event Replay flag ([#24156](facebook/react#24156))" ([#24402](facebook/react#24402)) //<Ricky>//
- **[ab9cdd34f](facebook/react@ab9cdd34f )**: Bugfix: In legacy mode, call suspended tree's unmount effects when it is deleted ([#24400](facebook/react#24400)) //<Andrew Clark>//
- **[168da8d55](facebook/react@168da8d55 )**: Fix typo that happened during rebasing //<Andrew Clark>//
- **[8bc527a4c](facebook/react@8bc527a4c )**: Bugfix: Fix race condition between interleaved and non-interleaved updates ([#24353](facebook/react#24353)) //<Andrew Clark>//
- **[f7cf077cc](facebook/react@f7cf077cc )**: [Transition Tracing] Add Offscreen Queue ([#24341](facebook/react#24341)) //<Luna Ruan>//
- **[4fc394bbe](facebook/react@4fc394bbe )**: Fix suspense fallback throttling ([#24253](facebook/react#24253)) //<sunderls>//
- **[80170a068](facebook/react@80170a068 )**: Match bundle.name and match upper case entry points ([#24346](facebook/react#24346)) //<Sebastian Markbåge>//
- **[fea6f8da6](facebook/react@fea6f8da6 )**: [Transition Tracing] Add transition to OffscreenState and pendingSuspenseBoundaries to RootState ([#24340](facebook/react#24340)) //<Luna Ruan>//
- **[8e2f9b086](facebook/react@8e2f9b086 )**: move passive flag ([#24339](facebook/react#24339)) //<Luna Ruan>//
- **[55a21ef7e](facebook/react@55a21ef7e )**: fix pushTransition for transition tracing ([#24338](facebook/react#24338)) //<Luna Ruan>//
- **[069d23bb7](facebook/react@069d23bb7 )**:  [eslint-plugin-exhaustive-deps] Fix exhaustive deps check for unstable vars ([#24343](facebook/react#24343)) //<Afzal Sayed>//
- **[4997515b9](facebook/react@4997515b9 )**: Point useSubscription to useSyncExternalStore shim ([#24289](facebook/react#24289)) //<dan>//
- **[01e2bff1d](facebook/react@01e2bff1d )**: Remove unnecessary check ([#24332](facebook/react#24332)) //<zhoulixiang>//
- **[d9a0f9e20](facebook/react@d9a0f9e20 )**: Delete create-subscription folder ([#24288](facebook/react#24288)) //<dan>//
- **[f993ffc51](facebook/react@f993ffc51 )**: Fix infinite update loop that happens when an unmemoized value is passed to useDeferredValue ([#24247](facebook/react#24247)) //<Andrew Clark>//
- **[fa5800226](facebook/react@fa5800226 )**: [Fizz] Pipeable Stream Perf ([#24291](facebook/react#24291)) //<Josh Story>//
- **[0568c0f8c](facebook/react@0568c0f8c )**: Replace zero with NoLanes for consistency in FiberLane ([#24327](facebook/react#24327)) //<Leo>//
- **[e0160d50c](facebook/react@e0160d50c )**: add transition tracing transitions stack ([#24321](facebook/react#24321)) //<Luna Ruan>//
- **[b0f13e5d3](facebook/react@b0f13e5d3 )**: add pendingPassiveTransitions ([#24320](facebook/react#24320)) //<Luna Ruan>//

Changelog:
[General][Changed] - React Native sync for revisions 60e63b9...bd4784c

jest_e2e[run_all_tests]

Reviewed By: kacieb

Differential Revision: D35899012

fbshipit-source-id: 86a885e336fca9f0efa80cd2b8ca040f2cb53853
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