GeezerVison is showing github.com — Remove legacy ReactDOM APIs behind feature flag by kassens · Pull Request #27596 · react/react
Conversation
These APIs have been deprecated with a warning since React 17. This disables them behind a feature flag for a major release.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kachkaev reacted with hooray emoji
|
Comparing: 8039e6d...cf0cfea
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
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/umd/react-dom.profiling.min.js |
= |
185.99 kB |
184.64 kB |
= |
57.83 kB |
57.45 kB |
| oss-experimental/react-dom/cjs/react-dom.profiling.min.js |
= |
186.89 kB |
185.52 kB |
= |
57.60 kB |
57.31 kB |
| oss-stable/react-dom/umd/react-dom.profiling.min.js |
= |
183.88 kB |
182.53 kB |
= |
57.15 kB |
56.80 kB |
| oss-stable-semver/react-dom/umd/react-dom.profiling.min.js |
= |
183.80 kB |
182.45 kB |
= |
57.12 kB |
56.78 kB |
| oss-stable/react-dom/cjs/react-dom.profiling.min.js |
= |
184.76 kB |
183.39 kB |
= |
56.94 kB |
56.64 kB |
| oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js |
= |
184.68 kB |
183.32 kB |
= |
56.91 kB |
56.61 kB |
| oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js |
= |
183.42 kB |
182.05 kB |
= |
57.53 kB |
57.22 kB |
| oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js |
= |
1,360.39 kB |
1,350.12 kB |
= |
300.53 kB |
298.72 kB |
| oss-experimental/react-dom/umd/react-dom.development.js |
= |
1,406.91 kB |
1,396.20 kB |
= |
299.20 kB |
297.36 kB |
| oss-experimental/react-dom/umd/react-dom.production.min.js |
= |
176.96 kB |
175.61 kB |
= |
55.39 kB |
55.02 kB |
| oss-experimental/react-dom/cjs/react-dom.development.js |
= |
1,342.34 kB |
1,332.07 kB |
= |
296.17 kB |
294.35 kB |
| oss-stable/react-dom/umd/react-dom.development.js |
= |
1,393.12 kB |
1,382.41 kB |
= |
296.71 kB |
294.87 kB |
| oss-stable-semver/react-dom/umd/react-dom.development.js |
= |
1,393.09 kB |
1,382.38 kB |
= |
296.68 kB |
294.85 kB |
| oss-stable/react-dom/cjs/react-dom.development.js |
= |
1,329.22 kB |
1,318.95 kB |
= |
293.74 kB |
291.92 kB |
| oss-stable-semver/react-dom/cjs/react-dom.development.js |
= |
1,329.19 kB |
1,318.92 kB |
= |
293.71 kB |
291.89 kB |
| oss-stable/react-dom/umd/react-dom.production.min.js |
= |
174.85 kB |
173.50 kB |
= |
54.76 kB |
54.42 kB |
| oss-stable-semver/react-dom/umd/react-dom.production.min.js |
= |
174.77 kB |
173.42 kB |
= |
54.73 kB |
54.40 kB |
| oss-experimental/react-dom/cjs/react-dom.production.min.js |
= |
177.21 kB |
175.84 kB |
= |
55.16 kB |
54.85 kB |
| oss-stable/react-dom/cjs/react-dom.production.min.js |
= |
175.09 kB |
173.72 kB |
= |
54.47 kB |
54.16 kB |
| oss-stable-semver/react-dom/cjs/react-dom.production.min.js |
= |
175.01 kB |
173.64 kB |
= |
54.45 kB |
54.13 kB |
Generated by 🚫 dangerJS against cf0cfea
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
|
'instead. Until you switch to the new API, your app will behave as ' +
|
|
|
"if it's running React 17. Learn " +
|
|
|
'more: https://reactjs.org/link/switch-to-createroot',
|
|
|
if (disableLegacyReactDOMRenderAPIs) {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should move these errors up to ReactDOM.js, then the flag should be in the entry points. If the flag is on, they include these functions from ReactDOM. If it's off, then they import from ReactDOMLegacy. Would that work?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|