GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor to remove IndeterminateComponent by kassens · Pull Request #28672 · react/react

Conversation

@kassens

@kassens kassens commented Mar 29, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Refactor to remove IndeterminateComponent

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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

react-sizebot commented Mar 29, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kassens kassens mentioned this pull request Mar 29, 2024
Test for ReactTestRenderer #28674
Merged
@kassens
kassens requested review from gnoff and rickhanlonii 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
@kassens
Test for ReactTestRenderer (#28674)
23b32d3
This is a repro for a breakage that #28672 would introduce for legacy
sync rendering.
@kassens
Refactor to remove IndeterminateComponent
2bd3f3b
@kassens kassens changed the title Refactor to remove IndeterminateComponent (do not land) Refactor to remove IndeterminateComponent Mar 29, 2024
@kassens
kassens force-pushed the pr28672 branch from 57de0ca to 2bd3f3b Compare March 29, 2024 18:03
gnoff
gnoff reviewed Mar 29, 2024
View reviewed changes
Comment thread packages/react-reconciler/src/ReactFiberBeginWork.js
Component: $FlowFixMe,
renderLanes: Lanes,
) {
resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);

@gnoff gnoff Mar 29, 2024

Copy link
Copy Markdown
Collaborator

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 I missed this. Should probably call this in updateFunctionComponent

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gnoff gnoff Mar 29, 2024

Copy link
Copy Markdown
Collaborator

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.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnoff gnoff mentioned this pull request Mar 29, 2024
Reland #28672: Remove IndeterminateComponent #28681
Merged
@kassens

kassens commented Mar 29, 2024

Copy link
Copy Markdown
Contributor Author

Replaced by #28681

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
@gnoff
Reland #28672: Remove IndeterminateComponent (#28681)
5998a77
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
@gnoff
Reland #28672: Remove IndeterminateComponent (#28681)
8d925e2
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
@kassens @AndyPengc12
Test for ReactTestRenderer (react#28674)
bf31d2b
This is a repro for a breakage that react#28672 would introduce for legacy
sync rendering.
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
@gnoff @AndyPengc12
Reland react#28672: Remove IndeterminateComponent (react#28681)
4d24105
This PR relands react#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 hoxyq mentioned this pull request Apr 15, 2024
React DevTools 5.0.2 -> 5.1.0 #28840
Merged
hoxyq added a commit that referenced this pull request Apr 15, 2024
@hoxyq
React DevTools 5.0.2 -> 5.1.0 (#28840)
2d128ff
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
@gnoff
Reland #28672: Remove IndeterminateComponent (#28681)
6d2deb7
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.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@kassens
Test for ReactTestRenderer (react#28674)
f2c7cd5
This is a repro for a breakage that react#28672 would introduce for legacy
sync rendering.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gnoff
Reland react#28672: Remove IndeterminateComponent (react#28681)
1c19419
This PR relands react#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.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@hoxyq
React DevTools 5.0.2 -> 5.1.0 (react#28840)
16e591d
Full list of changes:
* Look for a ReactMemoCacheSentinel on state
([gsathya](https://github.com/gsathya) in
[react#28831](react#28831))
* Use use() in the Cache if available
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28793](react#28793))
* feat[devtools-fusebox]: support theme option
([hoxyq](https://github.com/hoxyq) in
[react#28832](react#28832))
* feat[devtools]: add package for fusebox integration
([hoxyq](https://github.com/hoxyq) in
[react#28553](react#28553))
* feat[devtools]: add method for connecting backend with custom
messaging protocol ([hoxyq](https://github.com/hoxyq) in
[react#28552](react#28552))
* Rename SECRET INTERNALS to
`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28789](react#28789))
* Flatten ReactSharedInternals
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28783](react#28783))
* feat[devtools]: ship source maps for content scripts and ignore list
installHook script ([hoxyq](https://github.com/hoxyq) in
[react#28730](react#28730))
* Track Owner for Server Components in DEV
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28753](react#28753))
* Move ReactDOMLegacy implementation into RootFB
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28656](react#28656))
* Reland react#28672: Remove IndeterminateComponent
([gnoff](https://github.com/gnoff) in
[react#28681](react#28681))
* Remove reference to deleted <Cache> in un-linted file
([josephsavona](https://github.com/josephsavona) in
[react#28715](react#28715))
* [be] Remove unshipped experimental <Cache> element type
([josephsavona](https://github.com/josephsavona) in
[react#28698](react#28698))
* Revert "Remove module pattern function component support"
([rickhanlonii](https://github.com/rickhanlonii) in
[react#28670](react#28670))
* Remove module pattern function component support
([gnoff](https://github.com/gnoff) in
[react#27742](react#27742))
* [RTR] Enable warning flag ([jackpope](https://github.com/jackpope) in
[react#28419](react#28419))
* Update error messages ([rickhanlonii](https://github.com/rickhanlonii)
in [react#28652](react#28652))
* fix[devtools/ci]: split profiling cache test for different react
versions and toEqual checker ([hoxyq](https://github.com/hoxyq) in
[react#28628](react#28628))
* Guard against legacy context not being supported in DevTools fixture
([eps1lon](https://github.com/eps1lon) in
[react#28596](react#28596))
* Use `declare const` instead of `declare var`
([kassens](https://github.com/kassens) in
[react#28599](react#28599))
* Update isConcurrent RTR option usage
([jackpope](https://github.com/jackpope) in
[react#28546](react#28546))
* Disable legacy context ([kassens](https://github.com/kassens) in
[react#27991](react#27991))
* Remove invokeGuardedCallback and replay trick
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28515](react#28515))
* Remove remaining usages of ReactTestUtils in tests unrelated to
`react-dom/test-util` ([eps1lon](https://github.com/eps1lon) in
[react#28534](react#28534))
* fix[devtools/e2e]: fixed source inspection in e2e tests
([hoxyq](https://github.com/hoxyq) in
[react#28518](react#28518))
* Devtools: Display actual pending state when inspecting `useTransition`
([eps1lon](https://github.com/eps1lon) in
[react#28499](react#28499))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gnoff gnoff gnoff left review comments
@rickhanlonii rickhanlonii Awaiting requested review from rickhanlonii

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

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.

4 participants

@kassens @react-sizebot @gnoff @facebook-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.