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

Refactor to remove IndeterminateComponent #28672

Closed
wants to merge 1 commit into from

Conversation

kassens
Copy link
Member

@kassens kassens commented Mar 29, 2024

Refactor to remove IndeterminateComponent

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 29, 2024
@kassens kassens changed the title Refactor to remove IndeterminateComponent Refactor to remove IndeterminateComponent (do not land) Mar 29, 2024
@react-sizebot
Copy link

react-sizebot commented Mar 29, 2024

Comparing: 23b32d3...2bd3f3b

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 = 177.14 kB 176.87 kB = 55.06 kB 54.98 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 172.96 kB 172.72 kB = 53.92 kB 53.85 kB
facebook-www/ReactDOM-prod.classic.js = 592.88 kB 592.05 kB = 104.01 kB 103.87 kB
facebook-www/ReactDOM-prod.modern.js = 574.57 kB 574.22 kB = 101.03 kB 100.93 kB
test_utils/ReactAllWarnings.js Deleted 65.18 kB 0.00 kB Deleted 16.30 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/implementations/ReactFabric-prod.fb.js = 367.07 kB 366.34 kB = 64.28 kB 64.23 kB
facebook-www/ReactART-prod.classic.js = 363.81 kB 363.08 kB = 61.56 kB 61.47 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 401.82 kB 401.00 kB = 69.84 kB 69.76 kB
react-native/implementations/ReactFabric-profiling.fb.js = 394.35 kB 393.54 kB = 68.51 kB 68.44 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,676.52 kB 1,672.98 kB = 333.83 kB 333.25 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 122.17 kB 121.91 kB = 37.42 kB 37.37 kB
facebook-www/ReactDOM-dev.modern.js = 1,656.04 kB 1,652.50 kB = 329.40 kB 328.83 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js = 105.35 kB 105.12 kB = 32.70 kB 32.62 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js = 105.05 kB 104.83 kB = 32.33 kB 32.27 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js = 1,345.76 kB 1,342.82 kB = 297.58 kB 296.99 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 113.13 kB 112.88 kB = 35.07 kB 35.04 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,709.73 kB 1,705.97 kB = 339.58 kB 339.00 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js = 331.06 kB 330.33 kB = 58.08 kB 58.00 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 1,327.34 kB 1,324.40 kB = 293.20 kB 292.62 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,391.33 kB 1,388.24 kB = 296.19 kB 295.59 kB
facebook-www/ReactDOM-dev.classic.js = 1,687.95 kB 1,684.20 kB = 334.98 kB 334.39 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js = 123.69 kB 123.41 kB = 37.83 kB 37.76 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.min.js = 123.66 kB 123.38 kB = 37.80 kB 37.73 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js = 109.17 kB 108.92 kB = 33.48 kB 33.41 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js = 109.12 kB 108.87 kB = 33.45 kB 33.39 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js = 109.46 kB 109.21 kB = 33.87 kB 33.79 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js = 109.41 kB 109.16 kB = 33.84 kB 33.76 kB
oss-stable/react-dom/cjs/react-dom.development.js = 1,337.56 kB 1,334.47 kB = 295.14 kB 294.50 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js = 1,337.54 kB 1,334.45 kB = 295.11 kB 294.47 kB
oss-stable/react-dom/umd/react-dom.development.js = 1,401.95 kB 1,398.70 kB = 298.07 kB 297.49 kB
oss-stable-semver/react-dom/umd/react-dom.development.js = 1,401.92 kB 1,398.68 kB = 298.04 kB 297.46 kB
oss-experimental/react-art/cjs/react-art.production.min.js = 98.28 kB 98.05 kB = 30.20 kB 30.14 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.min.js = 114.64 kB 114.37 kB = 35.46 kB 35.37 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.min.js = 114.61 kB 114.34 kB = 35.43 kB 35.35 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js = 315.27 kB 314.53 kB = 55.61 kB 55.53 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.js = 684.77 kB 683.11 kB = 150.37 kB 150.11 kB
oss-stable/react-art/cjs/react-art.production.min.js = 100.47 kB 100.22 kB = 30.82 kB 30.75 kB
oss-stable-semver/react-art/cjs/react-art.production.min.js = 100.42 kB 100.17 kB = 30.79 kB 30.72 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.js = 726.12 kB 724.32 kB = 157.80 kB 157.53 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.js = 603.51 kB 601.98 kB = 134.97 kB 134.72 kB
oss-experimental/react-art/cjs/react-art.production.js = 599.41 kB 597.88 kB = 133.88 kB 133.61 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.js = 688.13 kB 686.31 kB = 151.04 kB 150.74 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.js = 688.10 kB 686.28 kB = 151.01 kB 150.71 kB
oss-experimental/react-dom/umd/react-dom-server.browser.development.js = 465.65 kB 464.41 kB = 99.85 kB 99.53 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.js = 729.48 kB 727.52 kB = 158.50 kB 158.22 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.js = 729.45 kB 727.49 kB = 158.47 kB 158.19 kB
oss-experimental/react-dom/umd/react-dom-server-legacy.browser.development.js = 456.58 kB 455.35 kB = 98.79 kB 98.47 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.development.js = 445.47 kB 444.26 kB = 99.03 kB 98.71 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js = 444.88 kB 443.67 kB = 98.90 kB 98.58 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js = 443.25 kB 442.04 kB = 98.08 kB 97.77 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.js = 613.57 kB 611.88 kB = 137.37 kB 137.08 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.js = 613.54 kB 611.85 kB = 137.34 kB 137.06 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.development.js = 437.94 kB 436.73 kB = 98.24 kB 97.91 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.development.js = 436.22 kB 435.01 kB = 97.80 kB 97.48 kB
oss-stable/react-dom/umd/react-dom-server-legacy.browser.development.js = 442.78 kB 441.55 kB = 96.50 kB 96.18 kB
oss-stable-semver/react-dom/umd/react-dom-server-legacy.browser.development.js = 442.76 kB 441.53 kB = 96.48 kB 96.16 kB
oss-stable/react-dom/umd/react-dom-server.browser.development.js = 442.13 kB 440.90 kB = 96.60 kB 96.27 kB
oss-stable-semver/react-dom/umd/react-dom-server.browser.development.js = 442.10 kB 440.87 kB = 96.57 kB 96.25 kB
oss-stable/react-art/cjs/react-art.production.js = 602.42 kB 600.73 kB = 134.55 kB 134.27 kB
oss-stable-semver/react-art/cjs/react-art.production.js = 602.39 kB 600.70 kB = 134.52 kB 134.25 kB
oss-experimental/react-dom/cjs/react-dom-server.bun.development.js = 429.91 kB 428.71 kB = 95.90 kB 95.57 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.node.development.js = 424.67 kB 423.47 kB = 95.96 kB 95.64 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.node.development.js = 424.65 kB 423.44 kB = 95.94 kB 95.61 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.browser.development.js = 422.95 kB 421.75 kB = 95.52 kB 95.20 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.browser.development.js = 422.93 kB 421.72 kB = 95.50 kB 95.17 kB
oss-stable/react-dom/cjs/react-dom-server.edge.development.js = 422.89 kB 421.68 kB = 95.75 kB 95.43 kB
oss-stable-semver/react-dom/cjs/react-dom-server.edge.development.js = 422.86 kB 421.66 kB = 95.73 kB 95.40 kB
oss-stable/react-dom/cjs/react-dom-server.browser.development.js = 422.31 kB 421.10 kB = 95.62 kB 95.29 kB
oss-stable-semver/react-dom/cjs/react-dom-server.browser.development.js = 422.28 kB 421.07 kB = 95.59 kB 95.27 kB
oss-stable/react-dom/cjs/react-dom-server.node.development.js = 421.21 kB 420.00 kB = 94.49 kB 94.17 kB
oss-stable-semver/react-dom/cjs/react-dom-server.node.development.js = 421.18 kB 419.98 kB = 94.47 kB 94.14 kB
oss-stable/react-dom/cjs/react-dom-server.bun.development.js = 416.64 kB 415.44 kB = 93.60 kB 93.27 kB
oss-stable-semver/react-dom/cjs/react-dom-server.bun.development.js = 416.62 kB 415.41 kB = 93.58 kB 93.25 kB
facebook-www/ReactDOMServer-dev.classic.js = 497.14 kB 495.62 kB = 101.29 kB 100.92 kB
facebook-www/ReactDOMServer-dev.modern.js = 494.47 kB 492.96 kB = 100.79 kB 100.43 kB
oss-experimental/react-art/umd/react-art.development.js = 959.93 kB 956.99 kB = 201.24 kB 200.69 kB
facebook-www/ReactDOMServerStreaming-dev.modern.js = 487.53 kB 486.01 kB = 99.18 kB 98.83 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 940.75 kB 937.82 kB = 201.59 kB 200.99 kB
facebook-www/ReactART-dev.modern.js = 1,069.21 kB 1,065.82 kB = 209.09 kB 208.47 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 1,114.35 kB 1,110.81 kB = 221.93 kB 221.29 kB
oss-stable/react-art/umd/react-art.development.js = 964.50 kB 961.40 kB = 202.81 kB 202.22 kB
oss-stable-semver/react-art/umd/react-art.development.js = 964.47 kB 961.37 kB = 202.78 kB 202.20 kB
react-native/implementations/ReactNativeRenderer-dev.js = 987.16 kB 983.99 kB = 198.64 kB 198.06 kB
react-native/implementations/ReactFabric-dev.fb.js = 1,099.73 kB 1,096.19 kB = 218.05 kB 217.44 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 821.73 kB 819.06 kB = 178.67 kB 178.06 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js = 860.61 kB 857.82 kB = 180.77 kB 180.14 kB
react-native/implementations/ReactFabric-dev.js = 972.26 kB 969.09 kB = 194.94 kB 194.39 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 943.01 kB 939.92 kB = 202.22 kB 201.55 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js = 942.98 kB 939.89 kB = 202.19 kB 201.52 kB
oss-experimental/react-art/cjs/react-art.development.js = 843.21 kB 840.40 kB = 181.95 kB 181.31 kB
facebook-www/ReactART-dev.classic.js = 1,081.43 kB 1,077.83 kB = 211.54 kB 210.89 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js = 873.82 kB 870.86 kB = 183.50 kB 182.92 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js = 873.79 kB 870.84 kB = 183.47 kB 182.89 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 834.38 kB 831.56 kB = 181.53 kB 180.87 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js = 834.35 kB 831.53 kB = 181.50 kB 180.84 kB
oss-stable/react-art/cjs/react-art.development.js = 847.68 kB 844.72 kB = 183.58 kB 183.00 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 847.65 kB 844.70 kB = 183.56 kB 182.97 kB
facebook-www/ReactTestRenderer-dev.classic.js = 968.26 kB 964.88 kB = 192.28 kB 191.68 kB
facebook-www/ReactTestRenderer-dev.modern.js = 968.26 kB 964.88 kB = 192.28 kB 191.68 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 947.88 kB 944.50 kB = 188.03 kB 187.44 kB
oss-experimental/react-server/cjs/react-server.development.js = 209.45 kB 208.24 kB = 48.68 kB 48.36 kB
oss-stable-semver/react-server/cjs/react-server.development.js = 199.89 kB 198.69 kB = 47.04 kB 46.72 kB
oss-stable/react-server/cjs/react-server.development.js = 199.89 kB 198.69 kB = 47.04 kB 46.72 kB
oss-experimental/react-reconciler/cjs/react-reconciler-reflection.development.js = 18.81 kB 18.69 kB = 5.40 kB 5.36 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler-reflection.development.js = 18.81 kB 18.69 kB = 5.40 kB 5.36 kB
oss-stable/react-reconciler/cjs/react-reconciler-reflection.development.js = 18.81 kB 18.69 kB = 5.40 kB 5.36 kB
test_utils/ReactAllWarnings.js Deleted 65.18 kB 0.00 kB Deleted 16.30 kB 0.00 kB

Generated by 🚫 dangerJS against 2bd3f3b

@kassens kassens requested review from rickhanlonii and gnoff March 29, 2024 17:10
@kassens kassens marked this pull request as draft March 29, 2024 17:10
kassens added a commit that referenced this pull request Mar 29, 2024
This is a repro for a breakage that #28672 would introduce for legacy
sync rendering.
@kassens kassens changed the title Refactor to remove IndeterminateComponent (do not land) Refactor to remove IndeterminateComponent Mar 29, 2024
Component: $FlowFixMe,
renderLanes: Lanes,
) {
resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I missed this. Should probably call this in updateFunctionComponent

Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm that doesn't really make sense though b/c why would the function component be "remounting". Can't add this to updateFunctionComponent because we normally don't want to unlink the fibers so it's just when there is a semantic mount on already linked fibers which doesn't seem to make sense for function components that aren't Indeterminant

@kassens
Copy link
Member Author

kassens commented Mar 29, 2024

Replaced by #28681

@kassens kassens closed this Mar 29, 2024
@kassens kassens deleted the pr28672 branch March 29, 2024 21:52
gnoff added a commit that referenced this pull request Apr 3, 2024
This PR relands #28672 on top of the flag removal and the test
demonstrating a breakage in Suspense for legacy mode.

React has deprecated module pattern Function Components for many years
at this point. Supporting this pattern required React to have a concept
of an indeterminate component so that when a component first renders it
can turn into either a ClassComponent or a FunctionComponent depending
on what it returns. While this feature was deprecated and put behind a
flag it is still in stable. This change remvoes the flag, removes the
warnings, and removes the concept of IndeterminateComponent from the
React codebase.

While removing IndeterminateComponent type Seb and I discovered that we
needed a concept of IncompleteFunctionComponent to support Suspense in
legacy mode. This new work tag is only needed as long as legacy mode is
around and ideally any code that considers this tag will be excludable
from OSS builds once we land extra gates using `disableLegacyMode` flag.
github-actions bot pushed a commit that referenced this pull request Apr 3, 2024
This PR relands #28672 on top of the flag removal and the test
demonstrating a breakage in Suspense for legacy mode.

React has deprecated module pattern Function Components for many years
at this point. Supporting this pattern required React to have a concept
of an indeterminate component so that when a component first renders it
can turn into either a ClassComponent or a FunctionComponent depending
on what it returns. While this feature was deprecated and put behind a
flag it is still in stable. This change remvoes the flag, removes the
warnings, and removes the concept of IndeterminateComponent from the
React codebase.

While removing IndeterminateComponent type Seb and I discovered that we
needed a concept of IncompleteFunctionComponent to support Suspense in
legacy mode. This new work tag is only needed as long as legacy mode is
around and ideally any code that considers this tag will be excludable
from OSS builds once we land extra gates using `disableLegacyMode` flag.

DiffTrain build for [5998a77](5998a77)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
This is a repro for a breakage that facebook#28672 would introduce for legacy
sync rendering.
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
This PR relands facebook#28672 on top of the flag removal and the test
demonstrating a breakage in Suspense for legacy mode.

React has deprecated module pattern Function Components for many years
at this point. Supporting this pattern required React to have a concept
of an indeterminate component so that when a component first renders it
can turn into either a ClassComponent or a FunctionComponent depending
on what it returns. While this feature was deprecated and put behind a
flag it is still in stable. This change remvoes the flag, removes the
warnings, and removes the concept of IndeterminateComponent from the
React codebase.

While removing IndeterminateComponent type Seb and I discovered that we
needed a concept of IncompleteFunctionComponent to support Suspense in
legacy mode. This new work tag is only needed as long as legacy mode is
around and ideally any code that considers this tag will be excludable
from OSS builds once we land extra gates using `disableLegacyMode` flag.
hoxyq added a commit that referenced this pull request Apr 15, 2024
Full list of changes:
* Look for a ReactMemoCacheSentinel on state
([gsathya](https://github.com/gsathya) in
[#28831](#28831))
* Use use() in the Cache if available
([sebmarkbage](https://github.com/sebmarkbage) in
[#28793](#28793))
* feat[devtools-fusebox]: support theme option
([hoxyq](https://github.com/hoxyq) in
[#28832](#28832))
* feat[devtools]: add package for fusebox integration
([hoxyq](https://github.com/hoxyq) in
[#28553](#28553))
* feat[devtools]: add method for connecting backend with custom
messaging protocol ([hoxyq](https://github.com/hoxyq) in
[#28552](#28552))
* Rename SECRET INTERNALS to
`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
([sebmarkbage](https://github.com/sebmarkbage) in
[#28789](#28789))
* Flatten ReactSharedInternals
([sebmarkbage](https://github.com/sebmarkbage) in
[#28783](#28783))
* feat[devtools]: ship source maps for content scripts and ignore list
installHook script ([hoxyq](https://github.com/hoxyq) in
[#28730](#28730))
* Track Owner for Server Components in DEV
([sebmarkbage](https://github.com/sebmarkbage) in
[#28753](#28753))
* Move ReactDOMLegacy implementation into RootFB
([sebmarkbage](https://github.com/sebmarkbage) in
[#28656](#28656))
* Reland #28672: Remove IndeterminateComponent
([gnoff](https://github.com/gnoff) in
[#28681](#28681))
* Remove reference to deleted <Cache> in un-linted file
([josephsavona](https://github.com/josephsavona) in
[#28715](#28715))
* [be] Remove unshipped experimental <Cache> element type
([josephsavona](https://github.com/josephsavona) in
[#28698](#28698))
* Revert "Remove module pattern function component support"
([rickhanlonii](https://github.com/rickhanlonii) in
[#28670](#28670))
* Remove module pattern function component support
([gnoff](https://github.com/gnoff) in
[#27742](#27742))
* [RTR] Enable warning flag ([jackpope](https://github.com/jackpope) in
[#28419](#28419))
* Update error messages ([rickhanlonii](https://github.com/rickhanlonii)
in [#28652](#28652))
* fix[devtools/ci]: split profiling cache test for different react
versions and toEqual checker ([hoxyq](https://github.com/hoxyq) in
[#28628](#28628))
* Guard against legacy context not being supported in DevTools fixture
([eps1lon](https://github.com/eps1lon) in
[#28596](#28596))
* Use `declare const` instead of `declare var`
([kassens](https://github.com/kassens) in
[#28599](#28599))
* Update isConcurrent RTR option usage
([jackpope](https://github.com/jackpope) in
[#28546](#28546))
* Disable legacy context ([kassens](https://github.com/kassens) in
[#27991](#27991))
* Remove invokeGuardedCallback and replay trick
([sebmarkbage](https://github.com/sebmarkbage) in
[#28515](#28515))
* Remove remaining usages of ReactTestUtils in tests unrelated to
`react-dom/test-util` ([eps1lon](https://github.com/eps1lon) in
[#28534](#28534))
* fix[devtools/e2e]: fixed source inspection in e2e tests
([hoxyq](https://github.com/hoxyq) in
[#28518](#28518))
* Devtools: Display actual pending state when inspecting `useTransition`
([eps1lon](https://github.com/eps1lon) in
[#28499](#28499))
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
This PR relands #28672 on top of the flag removal and the test
demonstrating a breakage in Suspense for legacy mode.

React has deprecated module pattern Function Components for many years
at this point. Supporting this pattern required React to have a concept
of an indeterminate component so that when a component first renders it
can turn into either a ClassComponent or a FunctionComponent depending
on what it returns. While this feature was deprecated and put behind a
flag it is still in stable. This change remvoes the flag, removes the
warnings, and removes the concept of IndeterminateComponent from the
React codebase.

While removing IndeterminateComponent type Seb and I discovered that we
needed a concept of IncompleteFunctionComponent to support Suspense in
legacy mode. This new work tag is only needed as long as legacy mode is
around and ideally any code that considers this tag will be excludable
from OSS builds once we land extra gates using `disableLegacyMode` flag.

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