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

Turn off enableFormActions in Meta build #26721

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Apr 25, 2023

This is enabled in the canary channels, but because it's relatively untested, we'll disable it at Meta until they're ready to start trying it out. It can change some behavior even if you don't intentionally start using the API.

The reason it's not a dynamic flag is that it affects the external Fizz runtime, which currently can't read flags at runtime.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 25, 2023
@acdlite
Copy link
Collaborator Author

acdlite commented Apr 25, 2023

Can't merge until addressing this: #26719 (comment)

@react-sizebot
Copy link

react-sizebot commented Apr 25, 2023

Comparing: bf449ee...9ffed5c

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 = 163.94 kB 163.94 kB = 51.68 kB 51.68 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 169.47 kB 169.47 kB = 53.33 kB 53.33 kB
facebook-www/ReactDOM-prod.classic.js = 572.79 kB 565.78 kB = 101.48 kB 100.03 kB
facebook-www/ReactDOM-prod.modern.js = 556.53 kB 549.52 kB = 98.67 kB 97.22 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOMServerStreaming-prod.modern.js = 140.59 kB 139.39 kB = 26.73 kB 26.35 kB
facebook-www/ReactDOMServer-prod.classic.js = 139.32 kB 138.12 kB = 26.17 kB 25.75 kB
facebook-www/ReactDOMServer-prod.modern.js = 135.75 kB 134.56 kB = 25.45 kB 25.04 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,463.02 kB 1,446.26 kB = 316.70 kB 312.45 kB
facebook-www/ReactDOM-dev.classic.js = 1,444.68 kB 1,427.91 kB = 312.28 kB 308.01 kB
facebook-www/ReactDOM-profiling.classic.js = 603.28 kB 596.27 kB = 105.97 kB 104.50 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,435.13 kB 1,418.36 kB = 311.33 kB 306.92 kB
facebook-www/ReactDOM-dev.modern.js = 1,416.79 kB 1,400.02 kB = 306.88 kB 302.52 kB
facebook-www/ReactDOMTesting-prod.classic.js = 587.61 kB 580.60 kB = 105.19 kB 103.74 kB
facebook-www/ReactDOM-profiling.modern.js = 586.95 kB 579.93 kB = 103.16 kB 101.69 kB
facebook-www/ReactDOM-prod.classic.js = 572.79 kB 565.78 kB = 101.48 kB 100.03 kB
facebook-www/ReactDOMTesting-prod.modern.js = 573.07 kB 566.06 kB = 102.79 kB 101.33 kB
facebook-www/ReactDOM-prod.modern.js = 556.53 kB 549.52 kB = 98.67 kB 97.22 kB
facebook-www/ReactDOMServer-dev.classic.js = 381.60 kB 376.47 kB = 82.89 kB 81.82 kB
facebook-www/ReactDOMServer-dev.modern.js = 374.18 kB 369.05 kB = 81.29 kB 80.21 kB
facebook-www/ReactDOMServerStreaming-dev.modern.js = 369.03 kB 363.90 kB = 80.01 kB 78.93 kB

Generated by 🚫 dangerJS against 9ffed5c

@sebmarkbage
Copy link
Collaborator

It doesn't really make sense to make this a dynamic flag because the external runtime doesn't support a dynamic flag. It probably can't really since it should load so early.

We also don't build a specific one. Only stable without it and experimental with it. https://github.com/facebook/react/blob/main/.github/workflows/commit_artifacts.yml#L137-L138

I guess it might just keep working without replaying if it's off.
#26716

@acdlite
Copy link
Collaborator Author

acdlite commented Apr 25, 2023

Ok I'll just hardcode to false for now to avoid confusion

This is enabled in the canary channels, but because it's relatively
untested, we'll disable it at Meta until they're ready to start trying
it out. It can change some behavior even if you don't intentionally
start using the API.

The reason it's not a dynamic flag is that it affects the external Fizz
runtime, which currently can't read flags at runtime.
@acdlite acdlite changed the title Make enableFormActions a dynamic flag in Meta build Turn off enableFormActions in Meta build Apr 25, 2023
@acdlite acdlite merged commit ed545ae into facebook:main Apr 25, 2023
2 checks passed
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
This is enabled in the canary channels, but because it's relatively
untested, we'll disable it at Meta until they're ready to start trying
it out. It can change some behavior even if you don't intentionally
start using the API.

The reason it's not a dynamic flag is that it affects the external Fizz
runtime, which currently can't read flags at runtime.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
This is enabled in the canary channels, but because it's relatively
untested, we'll disable it at Meta until they're ready to start trying
it out. It can change some behavior even if you don't intentionally
start using the API.

The reason it's not a dynamic flag is that it affects the external Fizz
runtime, which currently can't read flags at runtime.

DiffTrain build for commit ed545ae.
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.

None yet

4 participants