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

Enable enableSuspenseLayoutEffectSemantics flag statically for Facebook #22050

Merged

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Aug 9, 2021

This flag has been rolled out on Facebook at 10% public for ~3 weeks with no stat sig negative impact so let's enable it statically for Facebook builds.

@facebook-github-bot facebook-github-bot added React Core Team Opened by a member of the React Core Team CLA Signed labels Aug 9, 2021
@sizebot
Copy link

sizebot commented Aug 9, 2021

Comparing: 6493182...605b335

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 = 127.58 kB 127.58 kB = 40.72 kB 40.72 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 130.40 kB 130.40 kB = 41.65 kB 41.65 kB
facebook-www/ReactDOM-prod.classic.js = 406.44 kB 405.16 kB = 75.25 kB 75.04 kB
facebook-www/ReactDOM-prod.modern.js = 394.80 kB 393.72 kB = 73.52 kB 73.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 406.44 kB 405.16 kB = 75.25 kB 75.05 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/JSXDEVRuntime-dev.classic.js = 42.05 kB 41.95 kB = 11.74 kB 11.72 kB
facebook-www/JSXDEVRuntime-dev.modern.js = 42.05 kB 41.95 kB = 11.74 kB 11.72 kB
facebook-www/ReactDOM-profiling.modern.js = 421.06 kB 419.97 kB = 78.07 kB 77.86 kB
facebook-www/ReactDOMForked-profiling.modern.js = 421.06 kB 419.97 kB = 78.07 kB 77.86 kB
facebook-www/ReactDOM-prod.modern.js = 394.80 kB 393.72 kB = 73.52 kB 73.32 kB
facebook-www/ReactDOMForked-prod.modern.js = 394.80 kB 393.72 kB = 73.52 kB 73.33 kB
facebook-www/ReactDOM-profiling.classic.js = 432.75 kB 431.46 kB = 79.77 kB 79.56 kB
facebook-www/ReactDOMForked-profiling.classic.js = 432.75 kB 431.46 kB = 79.77 kB 79.56 kB
facebook-www/ReactDOM-prod.classic.js = 406.44 kB 405.16 kB = 75.25 kB 75.04 kB
facebook-www/ReactDOMForked-prod.classic.js = 406.44 kB 405.16 kB = 75.25 kB 75.05 kB
facebook-www/ReactART-prod.modern.js = 255.48 kB 254.40 kB = 45.69 kB 45.54 kB
facebook-www/ReactART-prod.classic.js = 263.35 kB 262.07 kB = 46.97 kB 46.79 kB
facebook-www/ReactIs-dev.classic.js = 9.98 kB 9.88 kB = 2.66 kB 2.63 kB
facebook-www/ReactIs-dev.modern.js = 9.98 kB 9.88 kB = 2.66 kB 2.63 kB

Generated by 🚫 dangerJS against 605b335

@@ -18,7 +18,6 @@ export const disableInputAttributeSyncing = __VARIANT__;
export const enableFilterEmptyStringAttributesDOM = __VARIANT__;
export const enableLegacyFBSupport = __VARIANT__;
export const skipUnmountedBoundaries = __VARIANT__;
export const enableSuspenseLayoutEffectSemantics = __VARIANT__;
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, what's the purpose of the __VARIANT__ value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For dynamic flags, we use the __VARIANT__ setting to ensure that automated tests run with both values (enabled and disabled) so we don't accidentally break one.

@bvaughn bvaughn merged commit ecd73e1 into facebook:main Aug 9, 2021
@bvaughn bvaughn deleted the enableSuspenseLayoutEffectSemantics-static branch August 9, 2021 19:45
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Aug 17, 2021
Summary:
This sync includes the following changes:
- **[424fe5870](facebook/react@424fe5870 )**: Revert "Show a soft error when a text string or number is supplied as a child to non text wrappers ([#21953](facebook/react#21953))" ([#22108](facebook/react#22108)) //<Sota>//
- **[aebf3b456](facebook/react@aebf3b456 )**: [Scheduler] Check for continuous input events ([#22107](facebook/react#22107)) //<Andrew Clark>//
- **[e9b2028b3](facebook/react@e9b2028b3 )**: Show a soft error when a text string or number is supplied as a child to non text wrappers ([#21953](facebook/react#21953)) //<Sota>//
- **[ecd73e17b](facebook/react@ecd73e17b )**: Enable enableSuspenseLayoutEffectSemantics flag statically for Facebook ([#22050](facebook/react#22050)) //<Brian Vaughn>//
- **[a8725a3e6](facebook/react@a8725a3e6 )**: Scheduling profiler: Added lane labels and durations to React measures ([#22029](facebook/react#22029)) //<Brian Vaughn>//

Changelog:
[General][Changed] - React Native sync for revisions 19092ac...5634ed1

jest_e2e[run_all_tests]

Reviewed By: kacieb

Differential Revision: D30225923

fbshipit-source-id: 562895d3e0d264f40770dadb89d4a16241967c4c
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
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