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

Support Promise as a renderable node #25634

Merged
merged 2 commits into from
Mar 11, 2023
Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Nov 4, 2022

Implements Promise as a valid React node types. The idea is that any type that can be unwrapped with use should also be renderable.

When the reconciler encounters a Usable in a child position, it will transparently unwrap the value before reconciling it. The value of the inner value will determine the identity of the child during reconciliation, not the Usable object that wraps around it.

Unlike use, the reconciler will recursively unwrap the value until it reaches a non-Usable type, e.g. Usable<Usable<Usable<T>>> will resolve to T.

In this initial commit, I've added support for Promises. I will do Context in the next step.

Being able to render a promise as a child has several interesting implications. The Server Components response format can use this feature in its implementation — instead of wrapping references to client components in React.lazy, it can just use a promise.

This also fulfills one of the requirements for async components on the client, because an async component always returns a promise for a React node. However, we will likely warn and/or lint against this for the time being because there are major caveats if you re-render an async component in response to user input. (Note: async components already work in a Server Components environment — the caveats only apply to running them in the browser.)

To suspend, React uses the same algorithm as use: by throwing an exception to unwind the stack, then replaying the begin phase once the promise resolves. It's a little weird to suspend during reconciliation, however, lazy already does this so if there were any obvious bugs related to that we likely would have already found them.

Still, the structure is a bit unfortunate. Ideally, we shouldn't need to replay the entire begin phase of the parent fiber in order to reconcile the children again. This would require a somewhat significant refactor, because reconciliation happens deep within the begin phase, and depending on the type of work, not always at the end. We should consider as a future improvement.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Nov 4, 2022
@sizebot
Copy link

sizebot commented Nov 4, 2022

Comparing: f31005d...7f46ef1

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 +0.23% 154.36 kB 154.72 kB +0.33% 48.99 kB 49.15 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.23% 156.28 kB 156.64 kB +0.25% 49.61 kB 49.74 kB
facebook-www/ReactDOM-prod.classic.js +0.26% 533.22 kB 534.59 kB +0.18% 94.44 kB 94.60 kB
facebook-www/ReactDOM-prod.modern.js +0.27% 518.31 kB 519.69 kB +0.18% 92.26 kB 92.42 kB
facebook-www/ReactDOMForked-prod.classic.js +0.26% 533.22 kB 534.59 kB +0.18% 94.44 kB 94.60 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-server/cjs/react-server.development.js +0.55% 145.48 kB 146.27 kB +0.69% 36.21 kB 36.46 kB
oss-stable/react-server/cjs/react-server.development.js +0.55% 145.48 kB 146.27 kB +0.69% 36.21 kB 36.46 kB
oss-experimental/react-server/cjs/react-server.development.js +0.55% 146.10 kB 146.89 kB +0.70% 36.40 kB 36.65 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js +0.52% 766.39 kB 770.40 kB +0.61% 164.21 kB 165.22 kB
facebook-www/ReactTestRenderer-dev.modern.js +0.51% 782.79 kB 786.80 kB +0.59% 167.52 kB 168.51 kB
facebook-www/ReactTestRenderer-dev.classic.js +0.51% 782.79 kB 786.80 kB +0.59% 167.52 kB 168.51 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +0.50% 752.09 kB 755.85 kB +0.59% 162.57 kB 163.53 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +0.50% 752.11 kB 755.87 kB +0.59% 162.60 kB 163.55 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +0.50% 752.21 kB 755.98 kB +0.59% 162.63 kB 163.59 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js +0.50% 787.86 kB 791.76 kB +0.60% 164.28 kB 165.27 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js +0.50% 787.88 kB 791.78 kB +0.60% 164.30 kB 165.29 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js +0.50% 787.98 kB 791.89 kB +0.60% 164.34 kB 165.33 kB
oss-stable-semver/react-art/cjs/react-art.development.js +0.49% 772.61 kB 776.37 kB +0.56% 166.63 kB 167.56 kB
oss-stable/react-art/cjs/react-art.development.js +0.49% 772.63 kB 776.39 kB +0.55% 166.66 kB 167.58 kB
oss-experimental/react-art/cjs/react-art.development.js +0.48% 780.43 kB 784.19 kB +0.55% 168.05 kB 168.99 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js +0.48% 289.56 kB 290.94 kB +0.32% 51.00 kB 51.16 kB
react-native/implementations/ReactFabric-dev.js +0.47% 844.88 kB 848.89 kB +0.54% 183.17 kB 184.15 kB
react-native/implementations/ReactNativeRenderer-dev.js +0.47% 854.42 kB 858.43 kB +0.53% 185.62 kB 186.61 kB
facebook-www/ReactART-dev.modern.js +0.46% 873.45 kB 877.46 kB +0.52% 184.36 kB 185.31 kB
react-native/implementations/ReactFabric-dev.fb.js +0.45% 881.69 kB 885.70 kB +0.51% 190.29 kB 191.27 kB
facebook-www/ReactART-dev.classic.js +0.45% 883.91 kB 887.92 kB +0.53% 186.45 kB 187.43 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js +0.45% 305.13 kB 306.51 kB +0.33% 53.35 kB 53.53 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +0.45% 891.21 kB 895.22 kB +0.51% 192.77 kB 193.75 kB
oss-stable-semver/react-art/umd/react-art.development.js +0.44% 880.15 kB 884.05 kB +0.53% 184.90 kB 185.89 kB
oss-stable/react-art/umd/react-art.development.js +0.44% 880.17 kB 884.07 kB +0.53% 184.92 kB 185.91 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js +0.44% 852.42 kB 856.18 kB +0.52% 180.96 kB 181.90 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js +0.44% 852.45 kB 856.21 kB +0.52% 180.98 kB 181.92 kB
oss-experimental/react-art/umd/react-art.development.js +0.44% 888.42 kB 892.32 kB +0.52% 186.37 kB 187.33 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.44% 860.25 kB 864.01 kB +0.52% 182.40 kB 183.35 kB
react-native/implementations/ReactFabric-prod.js +0.43% 316.88 kB 318.25 kB +0.25% 55.92 kB 56.06 kB
react-native/implementations/ReactNativeRenderer-prod.js +0.43% 323.03 kB 324.40 kB +0.25% 56.87 kB 57.01 kB
facebook-www/ReactART-prod.modern.js +0.42% 325.19 kB 326.57 kB +0.29% 55.01 kB 55.17 kB
react-native/implementations/ReactFabric-prod.fb.js +0.42% 327.62 kB 328.99 kB +0.32% 58.04 kB 58.22 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +0.41% 333.77 kB 335.14 kB +0.31% 59.02 kB 59.20 kB
react-native/implementations/ReactFabric-profiling.js +0.41% 336.06 kB 337.44 kB +0.21% 59.15 kB 59.27 kB
facebook-www/ReactART-prod.classic.js +0.41% 336.14 kB 337.52 kB +0.29% 56.87 kB 57.04 kB
oss-stable-semver/react-art/cjs/react-art.production.min.js +0.40% 92.28 kB 92.65 kB +0.45% 28.36 kB 28.48 kB
react-native/implementations/ReactNativeRenderer-profiling.js +0.40% 342.29 kB 343.67 kB +0.22% 60.11 kB 60.24 kB
oss-stable/react-art/cjs/react-art.production.min.js +0.40% 92.31 kB 92.68 kB +0.45% 28.35 kB 28.48 kB
oss-experimental/react-art/cjs/react-art.production.min.js +0.40% 93.72 kB 94.09 kB +0.35% 28.78 kB 28.88 kB
react-native/implementations/ReactFabric-profiling.fb.js +0.39% 354.53 kB 355.90 kB +0.28% 62.19 kB 62.36 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +0.38% 360.74 kB 362.12 kB +0.28% 63.24 kB 63.42 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.15 kB 100.52 kB +0.56% 30.72 kB 30.89 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.18 kB 100.55 kB +0.56% 30.72 kB 30.89 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.24 kB 100.61 kB +0.55% 30.75 kB 30.92 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 100.41 kB 100.76 kB +0.44% 31.12 kB 31.25 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 100.43 kB 100.79 kB +0.43% 31.12 kB 31.25 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 100.49 kB 100.85 kB +0.43% 31.15 kB 31.28 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.min.js +0.35% 106.13 kB 106.50 kB +0.41% 32.29 kB 32.42 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.min.js +0.35% 106.16 kB 106.52 kB +0.41% 32.31 kB 32.44 kB
oss-stable-semver/react-server/cjs/react-server.production.min.js +0.34% 24.24 kB 24.33 kB +0.25% 8.29 kB 8.31 kB
oss-stable/react-server/cjs/react-server.production.min.js +0.34% 24.24 kB 24.33 kB +0.25% 8.29 kB 8.31 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js +0.34% 107.57 kB 107.94 kB +0.38% 32.75 kB 32.87 kB
oss-experimental/react-server/cjs/react-server.production.min.js +0.33% 24.49 kB 24.57 kB +0.26% 8.38 kB 8.40 kB
facebook-www/ReactDOMTesting-dev.modern.js +0.33% 1,205.86 kB 1,209.87 kB +0.38% 266.83 kB 267.85 kB
facebook-www/ReactDOMTesting-dev.classic.js +0.32% 1,235.89 kB 1,239.90 kB +0.36% 272.61 kB 273.61 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.min.js +0.32% 115.02 kB 115.39 kB +0.37% 34.47 kB 34.59 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js +0.32% 115.05 kB 115.42 kB +0.36% 34.49 kB 34.62 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js +0.32% 116.46 kB 116.83 kB +0.39% 34.90 kB 35.04 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js +0.31% 1,202.32 kB 1,206.08 kB +0.36% 266.62 kB 267.57 kB
oss-stable/react-dom/cjs/react-dom.development.js +0.31% 1,202.34 kB 1,206.10 kB +0.36% 266.64 kB 267.60 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +0.31% 1,205.52 kB 1,209.29 kB +0.36% 267.20 kB 268.17 kB
oss-experimental/react-dom/cjs/react-dom.development.js +0.31% 1,212.39 kB 1,216.15 kB +0.35% 268.62 kB 269.57 kB
oss-stable-semver/react-dom/umd/react-dom.development.js +0.31% 1,260.76 kB 1,264.66 kB +0.36% 269.60 kB 270.58 kB
oss-stable/react-dom/umd/react-dom.development.js +0.31% 1,260.78 kB 1,264.68 kB +0.37% 269.62 kB 270.61 kB
oss-experimental/react-dom/umd/react-dom.development.js +0.31% 1,271.38 kB 1,275.29 kB +0.36% 271.58 kB 272.56 kB
facebook-www/ReactDOMForked-dev.modern.js +0.30% 1,332.06 kB 1,336.07 kB +0.34% 289.64 kB 290.62 kB
facebook-www/ReactDOM-dev.modern.js +0.30% 1,332.06 kB 1,336.07 kB +0.34% 289.64 kB 290.62 kB
oss-stable-semver/react-art/umd/react-art.production.min.js +0.30% 128.12 kB 128.50 kB +0.24% 39.58 kB 39.67 kB
oss-stable/react-art/umd/react-art.production.min.js +0.30% 128.14 kB 128.52 kB +0.24% 39.58 kB 39.67 kB
facebook-www/ReactDOMForked-dev.classic.js +0.30% 1,357.05 kB 1,361.06 kB +0.33% 294.25 kB 295.21 kB
facebook-www/ReactDOM-dev.classic.js +0.30% 1,357.05 kB 1,361.06 kB +0.33% 294.25 kB 295.21 kB
oss-experimental/react-art/umd/react-art.production.min.js +0.29% 129.56 kB 129.94 kB +0.34% 40.01 kB 40.15 kB
facebook-www/ReactDOMTesting-prod.modern.js +0.29% 480.63 kB 482.00 kB +0.18% 88.20 kB 88.36 kB
facebook-www/ReactDOMTesting-prod.classic.js +0.28% 496.59 kB 497.96 kB +0.18% 90.57 kB 90.73 kB
facebook-www/ReactDOMServerStreaming-dev.modern.js +0.27% 321.79 kB 322.65 kB +0.37% 72.34 kB 72.61 kB
facebook-www/ReactDOM-prod.modern.js +0.27% 518.31 kB 519.69 kB +0.18% 92.26 kB 92.42 kB
facebook-www/ReactDOMForked-prod.modern.js +0.27% 518.31 kB 519.69 kB +0.18% 92.26 kB 92.42 kB
facebook-www/ReactDOMServer-dev.modern.js +0.26% 326.31 kB 327.16 kB +0.37% 73.36 kB 73.63 kB
facebook-www/ReactDOM-prod.classic.js +0.26% 533.22 kB 534.59 kB +0.18% 94.44 kB 94.60 kB
facebook-www/ReactDOMForked-prod.classic.js +0.26% 533.22 kB 534.59 kB +0.18% 94.44 kB 94.60 kB
facebook-www/ReactDOMServer-dev.classic.js +0.26% 333.01 kB 333.86 kB +0.35% 74.80 kB 75.06 kB
oss-stable-semver/react-dom/cjs/react-dom-server.browser.development.js +0.25% 316.27 kB 317.07 kB +0.34% 72.66 kB 72.91 kB
oss-stable/react-dom/cjs/react-dom-server.browser.development.js +0.25% 316.29 kB 317.09 kB +0.34% 72.68 kB 72.93 kB
oss-experimental/react-dom/cjs/react-dom-static.browser.development.js +0.25% 316.89 kB 317.69 kB +0.34% 72.85 kB 73.10 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.browser.development.js +0.25% 317.06 kB 317.86 kB +0.35% 72.46 kB 72.72 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.browser.development.js +0.25% 317.08 kB 317.88 kB +0.35% 72.49 kB 72.74 kB
oss-stable-semver/react-dom/cjs/react-dom-server.node.development.js +0.25% 317.43 kB 318.23 kB +0.34% 72.60 kB 72.85 kB
oss-stable/react-dom/cjs/react-dom-server.node.development.js +0.25% 317.46 kB 318.25 kB +0.34% 72.62 kB 72.87 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js +0.25% 317.59 kB 318.38 kB +0.34% 73.04 kB 73.28 kB
oss-stable-semver/react-dom/umd/react-dom-server.browser.development.js +0.25% 331.66 kB 332.49 kB +0.36% 73.42 kB 73.68 kB
oss-stable/react-dom/umd/react-dom-server.browser.development.js +0.25% 331.68 kB 332.51 kB +0.36% 73.44 kB 73.70 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.development.js +0.25% 318.38 kB 319.18 kB +0.35% 72.84 kB 73.09 kB
facebook-www/ReactDOM-profiling.modern.js +0.25% 548.45 kB 549.83 kB +0.17% 96.77 kB 96.94 kB
facebook-www/ReactDOMForked-profiling.modern.js +0.25% 548.45 kB 549.83 kB +0.17% 96.77 kB 96.94 kB
oss-experimental/react-dom/cjs/react-dom-static.node.development.js +0.25% 318.71 kB 319.51 kB +0.34% 73.06 kB 73.31 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js +0.25% 318.75 kB 319.55 kB +0.34% 72.97 kB 73.22 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.node.development.js +0.25% 318.77 kB 319.57 kB +0.35% 72.93 kB 73.19 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.node.development.js +0.25% 318.79 kB 319.59 kB +0.35% 72.96 kB 73.21 kB
oss-stable-semver/react-dom/umd/react-dom-server-legacy.browser.development.js +0.25% 332.46 kB 333.30 kB +0.36% 73.24 kB 73.50 kB
oss-stable/react-dom/umd/react-dom-server-legacy.browser.development.js +0.25% 332.49 kB 333.32 kB +0.35% 73.26 kB 73.52 kB
oss-experimental/react-dom/umd/react-dom-server.browser.development.js +0.25% 333.06 kB 333.89 kB +0.36% 73.78 kB 74.04 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.development.js +0.25% 320.09 kB 320.88 kB +0.35% 73.31 kB 73.56 kB
oss-experimental/react-dom/umd/react-dom-server-legacy.browser.development.js +0.25% 333.86 kB 334.70 kB +0.35% 73.61 kB 73.87 kB
facebook-www/ReactDOM-profiling.classic.js +0.24% 563.45 kB 564.82 kB +0.17% 98.97 kB 99.14 kB
facebook-www/ReactDOMForked-profiling.classic.js +0.24% 563.45 kB 564.82 kB +0.17% 98.97 kB 99.14 kB
oss-stable-semver/react-dom/cjs/react-dom.production.min.js +0.23% 154.33 kB 154.69 kB +0.32% 48.99 kB 49.15 kB
oss-stable/react-dom/cjs/react-dom.production.min.js +0.23% 154.36 kB 154.72 kB +0.33% 48.99 kB 49.15 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.23% 156.28 kB 156.64 kB +0.25% 49.61 kB 49.74 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js +0.22% 160.68 kB 161.04 kB +0.32% 51.43 kB 51.59 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js +0.22% 163.84 kB 164.20 kB +0.33% 51.50 kB 51.67 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js +0.22% 163.87 kB 164.23 kB +0.33% 51.50 kB 51.67 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js +0.22% 165.79 kB 166.15 kB +0.22% 52.10 kB 52.22 kB
oss-stable-semver/react-dom/umd/react-dom.production.min.js +0.21% 154.36 kB 154.69 kB +0.21% 49.70 kB 49.81 kB
oss-stable/react-dom/umd/react-dom.production.min.js +0.21% 154.38 kB 154.71 kB +0.21% 49.70 kB 49.81 kB
oss-experimental/react-dom/umd/react-dom.production.min.js +0.21% 156.28 kB 156.61 kB +0.15% 50.37 kB 50.45 kB
oss-experimental/react-dom/umd/react-dom.profiling.min.js +0.21% 165.12 kB 165.46 kB +0.19% 52.68 kB 52.78 kB
oss-stable-semver/react-dom/umd/react-dom.profiling.min.js +0.20% 163.20 kB 163.53 kB +0.14% 51.97 kB 52.05 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js +0.20% 163.23 kB 163.56 kB +0.14% 51.97 kB 52.04 kB

Generated by 🚫 dangerJS against 7f46ef1

@acdlite acdlite marked this pull request as ready for review November 4, 2022 15:52
@acdlite acdlite force-pushed the promise-as-child branch 2 times, most recently from ca01d51 to 324cf1f Compare November 6, 2022 20:12
@acdlite acdlite changed the title Support Promise as React node (Fiber) Support Promise as a renderable node Nov 6, 2022
@acdlite acdlite force-pushed the promise-as-child branch 2 times, most recently from a665a00 to e593439 Compare November 18, 2022 20:41
lanes: Lanes,
): Fiber | null {
// This indirection only exists so we can reset `thenableState` at the end.
// It should get inlined by Closure.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't appear to be the case. This function is called in many places and it's larger than closure considers inlinable. reconcileChildFibersImpl is returned as first class so it can't be inlined and is also recursive, so it's also not inlined into this function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm maybe it would work if I move the indirection into the factory function

I could also submit a PR to get rid of createChildReconciler and thread the arguments through instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It makes sense to me that reconcileChildFibersImpl wouldn't get inlined, since it's recursive. Do you have a guess for why the outer one (reconcileChildFibers) isn't inlined into its callers, though? Since it's only a few lines long.

Copy link
Collaborator

@sebmarkbage sebmarkbage left a comment

Choose a reason for hiding this comment

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

Seems like we need to refactor more in this space in follow ups anyway.

acdlite added 2 commits March 11, 2023 16:52
Just a rename. Scope of this test file has expanded.
Implements Promise as a valid React node types. The idea is that any
type that can be unwrapped with `use` should also be renderable.

When the reconciler encounters a Usable in a child position, it will
transparently unwrap the value before reconciling it. The value of the
inner value will determine the identity of the child during
reconciliation, not the Usable object that wraps around it.

Unlike `use`, the reconciler will recursively unwrap the value until it
reaches a non-Usable type, e.g. Usable<Usable<Usable<T>>> will resolve
to T.

In this initial commit, I've added support for Promises. I will do
Context in the next step.

Being able to render a promise as a child has several interesting
implications. The Server Components response format can use this feature
in its implementation — instead of wrapping references to
client components in `React.lazy`, it can just use a promise.

This also fulfills one of the requirements for async components on the
client, because an async component always returns a promise for a React
node. However, we will likely warn and/or lint against this for the time
being because there are major caveats if you re-render an async
component in response to user input. (Note: async components already
work in a Server Components environment — the caveats only apply to
running them in the browser.)

To suspend, React uses the same algorithm as `use`: by throwing an
exception to unwind the stack, then replaying the begin phase once the
promise resolves. It's a little weird to suspend during reconciliation,
however, `lazy` already does this so if there were any obvious bugs
related to that we likely would have already found them.

Still, the structure is a bit unfortunate. Ideally, we shouldn't need to
replay the entire begin phase of the parent fiber in order to reconcile
the children again. This would require a somewhat significant refactor,
because reconciliation happens deep within the begin phase, and
depending on the type of work, not always at the end. We should consider
as a future improvement.
@react-sizebot
Copy link

Comparing: f411e89...610b9df

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 +0.24% 156.85 kB 157.23 kB +0.26% 49.61 kB 49.74 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.24% 158.86 kB 159.24 kB +0.24% 50.29 kB 50.41 kB
facebook-www/ReactDOM-prod.classic.js +0.25% 539.31 kB 540.68 kB +0.16% 95.93 kB 96.09 kB
facebook-www/ReactDOM-prod.modern.js +0.26% 523.17 kB 524.55 kB +0.18% 93.62 kB 93.78 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js +0.47% 289.49 kB 290.86 kB +0.31% 51.30 kB 51.46 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js +0.46% 766.07 kB 769.56 kB +0.59% 164.87 kB 165.84 kB
oss-stable-semver/react-server/cjs/react-server.development.js +0.45% 144.67 kB 145.32 kB +0.64% 36.05 kB 36.28 kB
oss-stable/react-server/cjs/react-server.development.js +0.45% 144.67 kB 145.32 kB +0.64% 36.05 kB 36.28 kB
oss-experimental/react-server/cjs/react-server.development.js +0.45% 145.32 kB 145.98 kB +0.63% 36.24 kB 36.47 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js +0.45% 305.23 kB 306.61 kB +0.32% 53.67 kB 53.85 kB
facebook-www/ReactTestRenderer-dev.modern.js +0.45% 782.32 kB 785.82 kB +0.59% 168.07 kB 169.05 kB
facebook-www/ReactTestRenderer-dev.classic.js +0.45% 782.33 kB 785.82 kB +0.59% 168.07 kB 169.05 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +0.44% 751.61 kB 754.95 kB +0.58% 163.07 kB 164.02 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +0.44% 751.64 kB 754.97 kB +0.59% 163.09 kB 164.05 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +0.44% 752.01 kB 755.34 kB +0.59% 163.19 kB 164.15 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js +0.44% 787.39 kB 790.86 kB +0.60% 164.89 kB 165.87 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js +0.44% 787.41 kB 790.88 kB +0.60% 164.91 kB 165.89 kB
react-native/implementations/ReactFabric-prod.js +0.44% 311.85 kB 313.23 kB +0.33% 55.04 kB 55.22 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js +0.44% 787.80 kB 791.27 kB +0.59% 165.00 kB 165.99 kB
oss-stable-semver/react-art/cjs/react-art.development.js +0.43% 772.20 kB 775.53 kB +0.56% 167.22 kB 168.16 kB
oss-stable/react-art/cjs/react-art.development.js +0.43% 772.22 kB 775.56 kB +0.56% 167.25 kB 168.18 kB
react-native/implementations/ReactNativeRenderer-prod.js +0.43% 318.97 kB 320.34 kB +0.29% 56.38 kB 56.54 kB
oss-experimental/react-art/cjs/react-art.development.js +0.43% 780.46 kB 783.79 kB +0.57% 168.73 kB 169.69 kB
react-native/implementations/ReactFabric-prod.fb.js +0.43% 322.55 kB 323.92 kB +0.33% 57.06 kB 57.25 kB
facebook-www/ReactART-prod.modern.js +0.42% 325.35 kB 326.73 kB +0.28% 55.36 kB 55.51 kB
react-native/implementations/ReactFabric-dev.js +0.42% 832.84 kB 836.34 kB +0.54% 179.72 kB 180.69 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js +0.42% 329.66 kB 331.03 kB +0.29% 58.45 kB 58.62 kB
react-native/implementations/ReactFabric-profiling.js +0.41% 331.19 kB 332.56 kB +0.33% 58.23 kB 58.42 kB
react-native/implementations/ReactNativeRenderer-dev.js +0.41% 845.98 kB 849.47 kB +0.53% 183.54 kB 184.51 kB
facebook-www/ReactART-prod.classic.js +0.41% 336.33 kB 337.71 kB +0.27% 57.26 kB 57.42 kB
react-native/implementations/ReactNativeRenderer-profiling.js +0.41% 338.38 kB 339.76 kB +0.29% 59.59 kB 59.76 kB
react-native/implementations/ReactFabric-dev.fb.js +0.40% 869.69 kB 873.18 kB +0.56% 186.84 kB 187.88 kB
facebook-www/ReactART-dev.modern.js +0.40% 871.56 kB 875.05 kB +0.54% 184.60 kB 185.59 kB
oss-stable-semver/react-art/cjs/react-art.production.min.js +0.40% 92.58 kB 92.95 kB +0.38% 28.44 kB 28.55 kB
oss-stable/react-art/cjs/react-art.production.min.js +0.40% 92.62 kB 92.99 kB +0.38% 28.47 kB 28.57 kB
facebook-www/ReactART-dev.classic.js +0.40% 882.75 kB 886.25 kB +0.54% 186.89 kB 187.91 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +0.40% 882.80 kB 886.29 kB +0.52% 190.75 kB 191.74 kB
oss-experimental/react-art/cjs/react-art.production.min.js +0.39% 94.13 kB 94.50 kB +0.43% 28.90 kB 29.02 kB
react-native/implementations/ReactFabric-profiling.fb.js +0.39% 349.73 kB 351.11 kB +0.32% 61.23 kB 61.42 kB
oss-stable-semver/react-art/umd/react-art.development.js +0.39% 885.71 kB 889.18 kB +0.52% 186.27 kB 187.24 kB
oss-stable/react-art/umd/react-art.development.js +0.39% 885.73 kB 889.20 kB +0.52% 186.29 kB 187.26 kB
oss-experimental/react-art/umd/react-art.development.js +0.39% 894.44 kB 897.91 kB +0.52% 187.77 kB 188.75 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js +0.39% 866.35 kB 869.69 kB +0.51% 183.78 kB 184.73 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js +0.39% 866.38 kB 869.71 kB +0.51% 183.81 kB 184.75 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +0.38% 356.91 kB 358.28 kB +0.28% 62.67 kB 62.85 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.38% 874.62 kB 877.95 kB +0.51% 185.30 kB 186.25 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.49 kB 100.86 kB +0.44% 30.76 kB 30.89 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.54 kB 100.91 kB +0.43% 30.78 kB 30.91 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js +0.37% 100.66 kB 101.03 kB +0.43% 30.82 kB 30.95 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 100.85 kB 101.22 kB +0.40% 31.20 kB 31.32 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 100.90 kB 101.27 kB +0.39% 31.22 kB 31.35 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js +0.36% 101.03 kB 101.39 kB +0.38% 31.28 kB 31.40 kB
oss-stable-semver/react-server/cjs/react-server.production.min.js +0.34% 24.34 kB 24.42 kB +0.25% 8.30 kB 8.32 kB
oss-stable/react-server/cjs/react-server.production.min.js +0.34% 24.34 kB 24.42 kB +0.25% 8.30 kB 8.32 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.min.js +0.34% 109.18 kB 109.54 kB +0.37% 33.08 kB 33.20 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.min.js +0.34% 109.20 kB 109.57 kB +0.37% 33.10 kB 33.22 kB
oss-experimental/react-server/cjs/react-server.production.min.js +0.33% 24.60 kB 24.68 kB +0.30% 8.39 kB 8.42 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js +0.33% 110.70 kB 111.07 kB +0.38% 33.55 kB 33.68 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.min.js +0.31% 118.17 kB 118.54 kB +0.31% 35.31 kB 35.42 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js +0.31% 118.19 kB 118.56 kB +0.30% 35.33 kB 35.44 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js +0.31% 119.69 kB 120.06 kB +0.32% 35.76 kB 35.88 kB
facebook-www/ReactDOMTesting-dev.modern.js +0.29% 1,201.68 kB 1,205.18 kB +0.36% 266.35 kB 267.31 kB
oss-stable-semver/react-art/umd/react-art.production.min.js +0.29% 129.85 kB 130.22 kB +0.24% 40.57 kB 40.67 kB
oss-stable/react-art/umd/react-art.production.min.js +0.29% 129.90 kB 130.27 kB +0.24% 40.59 kB 40.69 kB
oss-experimental/react-art/umd/react-art.production.min.js +0.28% 131.41 kB 131.78 kB +0.28% 41.05 kB 41.16 kB
facebook-www/ReactDOMTesting-dev.classic.js +0.28% 1,232.08 kB 1,235.58 kB +0.35% 272.22 kB 273.18 kB
facebook-www/ReactDOMTesting-prod.modern.js +0.28% 485.17 kB 486.54 kB +0.19% 89.37 kB 89.54 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js +0.28% 1,199.75 kB 1,203.09 kB +0.36% 266.33 kB 267.30 kB
oss-stable/react-dom/cjs/react-dom.development.js +0.28% 1,199.77 kB 1,203.11 kB +0.36% 266.36 kB 267.33 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +0.28% 1,203.67 kB 1,207.00 kB +0.35% 267.12 kB 268.07 kB
oss-stable-semver/react-dom/umd/react-dom.development.js +0.28% 1,257.43 kB 1,260.90 kB +0.36% 269.21 kB 270.18 kB
oss-stable/react-dom/umd/react-dom.development.js +0.28% 1,257.45 kB 1,260.92 kB +0.36% 269.24 kB 270.20 kB
oss-experimental/react-dom/cjs/react-dom.development.js +0.28% 1,210.25 kB 1,213.58 kB +0.36% 268.37 kB 269.35 kB
facebook-www/ReactDOMTesting-prod.classic.js +0.27% 500.82 kB 502.19 kB +0.19% 91.63 kB 91.81 kB
oss-experimental/react-dom/umd/react-dom.development.js +0.27% 1,268.50 kB 1,271.97 kB +0.36% 271.24 kB 272.23 kB
facebook-www/ReactDOM-prod.modern.js +0.26% 523.17 kB 524.55 kB +0.18% 93.62 kB 93.78 kB
facebook-www/ReactDOM-dev.modern.js +0.26% 1,330.44 kB 1,333.93 kB +0.36% 289.50 kB 290.53 kB
facebook-www/ReactDOM-dev.classic.js +0.26% 1,358.14 kB 1,361.64 kB +0.35% 294.62 kB 295.65 kB
facebook-www/ReactDOM-prod.classic.js +0.25% 539.31 kB 540.68 kB +0.16% 95.93 kB 96.09 kB
facebook-www/ReactDOM-profiling.modern.js +0.25% 553.41 kB 554.78 kB +0.18% 97.99 kB 98.16 kB
oss-stable-semver/react-dom/cjs/react-dom.production.min.js +0.24% 156.78 kB 157.16 kB +0.27% 49.59 kB 49.72 kB
oss-stable/react-dom/cjs/react-dom.production.min.js +0.24% 156.85 kB 157.23 kB +0.26% 49.61 kB 49.74 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.24% 158.86 kB 159.24 kB +0.24% 50.29 kB 50.41 kB
oss-stable-semver/react-dom/umd/react-dom.production.min.js +0.24% 156.87 kB 157.25 kB +0.18% 50.24 kB 50.34 kB
oss-stable/react-dom/umd/react-dom.production.min.js +0.24% 156.94 kB 157.32 kB +0.18% 50.27 kB 50.36 kB
facebook-www/ReactDOM-profiling.classic.js +0.24% 569.64 kB 571.02 kB +0.16% 100.43 kB 100.59 kB
oss-experimental/react-dom/umd/react-dom.production.min.js +0.24% 158.94 kB 159.33 kB +0.23% 50.92 kB 51.04 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js +0.24% 163.25 kB 163.63 kB +0.29% 52.06 kB 52.21 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js +0.23% 166.39 kB 166.78 kB +0.27% 52.11 kB 52.25 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js +0.23% 166.46 kB 166.85 kB +0.27% 52.13 kB 52.27 kB
oss-stable-semver/react-dom/umd/react-dom.profiling.min.js +0.23% 165.84 kB 166.22 kB +0.18% 52.62 kB 52.71 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js +0.23% 165.91 kB 166.29 kB +0.18% 52.64 kB 52.74 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js +0.23% 168.47 kB 168.86 kB +0.23% 52.83 kB 52.95 kB
oss-experimental/react-dom/umd/react-dom.profiling.min.js +0.23% 167.91 kB 168.29 kB +0.23% 53.35 kB 53.47 kB

Generated by 🚫 dangerJS against 610b9df

@acdlite acdlite merged commit d4f58c3 into facebook:main Mar 11, 2023
github-actions bot pushed a commit that referenced this pull request Mar 11, 2023
Implements Promise as a valid React node types. The idea is that any
type that can be unwrapped with `use` should also be renderable.

When the reconciler encounters a Usable in a child position, it will
transparently unwrap the value before reconciling it. The value of the
inner value will determine the identity of the child during
reconciliation, not the Usable object that wraps around it.

Unlike `use`, the reconciler will recursively unwrap the value until it
reaches a non-Usable type, e.g. `Usable<Usable<Usable<T>>>` will resolve
to T.

In this initial commit, I've added support for Promises. I will do
Context in the [next
step](#25641).

Being able to render a promise as a child has several interesting
implications. The Server Components response format can use this feature
in its implementation — instead of wrapping references to client
components in `React.lazy`, it can just use a promise.

This also fulfills one of the requirements for async components on the
client, because an async component always returns a promise for a React
node. However, we will likely warn and/or lint against this for the time
being because there are major caveats if you re-render an async
component in response to user input. (Note: async components already
work in a Server Components environment — the caveats only apply to
running them in the browser.)

To suspend, React uses the same algorithm as `use`: by throwing an
exception to unwind the stack, then replaying the begin phase once the
promise resolves. It's a little weird to suspend during reconciliation,
however, `lazy` already does this so if there were any obvious bugs
related to that we likely would have already found them.

Still, the structure is a bit unfortunate. Ideally, we shouldn't need to
replay the entire begin phase of the parent fiber in order to reconcile
the children again. This would require a somewhat significant refactor,
because reconciliation happens deep within the begin phase, and
depending on the type of work, not always at the end. We should consider
as a future improvement.

DiffTrain build for [d4f58c3](d4f58c3)
acdlite added a commit that referenced this pull request Mar 11, 2023
## Based on #25634

Like promises, this adds support for Context as a React node.

In this initial implementation, the context dependency is added to the
parent of child node. This allows the parent to re-reconcile its
children when the context updates, so that it can delete the old node if
the identity of the child has changed (i.e. if the key or type of an
element has changed). But it also means that the parent will replay its
entire begin phase. Ideally React would delete the old node and mount
the new node without reconciling all the children. I'll leave this for a
future optimization.
github-actions bot pushed a commit that referenced this pull request Mar 11, 2023
## Based on #25634

Like promises, this adds support for Context as a React node.

In this initial implementation, the context dependency is added to the
parent of child node. This allows the parent to re-reconcile its
children when the context updates, so that it can delete the old node if
the identity of the child has changed (i.e. if the key or type of an
element has changed). But it also means that the parent will replay its
entire begin phase. Ideally React would delete the old node and mount
the new node without reconciling all the children. I'll leave this for a
future optimization.

DiffTrain build for [1317681](1317681)
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Mar 14, 2023
Summary:
This sync includes the following changes:
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...f828bad

jest_e2e[run_all_tests]

Reviewed By: robhogan, rshest

Differential Revision: D44024996

fbshipit-source-id: 8ac9754c5ffe12bd5d9c3499515c0925bd411f70
unstubbable added a commit to unstubbable/mfng that referenced this pull request Mar 14, 2023
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Mar 15, 2023
Summary:
This sync includes the following changes:
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...47cf4e5

jest_e2e[run_all_tests]

Reviewed By: sammy-SC

Differential Revision: D44090004

fbshipit-source-id: 6ac2d1d22a078d07ce011481063e78843bded28e
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Mar 21, 2023
Summary:
This sync includes the following changes:
- **[3554c8852](facebook/react@3554c8852 )**: Clean interface for public instances between React and React Native ([#26416](facebook/react#26416)) //<Rubén Norte>//
- **[db281b3d9](facebook/react@db281b3d9 )**: Feature: Suspend commit without blocking render ([#26398](facebook/react#26398)) //<Andrew Clark>//
- **[55308554e](facebook/react@55308554e )**: [www] enable enableFilterEmptyStringAttributesDOM flag ([#26410](facebook/react#26410)) //<Jan Kassens>//
- **[163d86e19](facebook/react@163d86e19 )**: Updated comment message ([#26158](facebook/react#26158)) //<Ibrahim Amin>//
- **[108aed083](facebook/react@108aed083 )**: Fix use of stale props in Fabric events ([#26408](facebook/react#26408)) //<Rubén Norte>//
- **[8fa41ffa2](facebook/react@8fa41ffa2 )**: Don't "fix up" mismatched text content with suppressedHydrationWarning ([#26391](facebook/react#26391)) //<Sebastian Markbåge>//
- **[05777ffb0](facebook/react@05777ffb0 )**: Setting transition pending flag shouldn't be part of a surrounding transition ([#26243](facebook/react#26243)) //<Sophie Alpert>//
- **[99aa082be](facebook/react@99aa082be )**: Remove unstable_flushControlled ([#26397](facebook/react#26397)) //<Jan Kassens>//
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...3554c88

jest_e2e[run_all_tests]
bypass-github-export-checks

@public

Fixes tests for current React version.

Reviewed By: sammy-SC

Differential Revision: D44216371

fbshipit-source-id: a569c9aeaf2d96d150219e148f06dcde9ba6f7cd
facebook-github-bot pushed a commit to facebook/relay that referenced this pull request Mar 21, 2023
Summary:
This sync includes the following changes:
- **[3554c8852](facebook/react@3554c8852 )**: Clean interface for public instances between React and React Native ([#26416](facebook/react#26416)) //<Rubén Norte>//
- **[db281b3d9](facebook/react@db281b3d9 )**: Feature: Suspend commit without blocking render ([#26398](facebook/react#26398)) //<Andrew Clark>//
- **[55308554e](facebook/react@55308554e )**: [www] enable enableFilterEmptyStringAttributesDOM flag ([#26410](facebook/react#26410)) //<Jan Kassens>//
- **[163d86e19](facebook/react@163d86e19 )**: Updated comment message ([#26158](facebook/react#26158)) //<Ibrahim Amin>//
- **[108aed083](facebook/react@108aed083 )**: Fix use of stale props in Fabric events ([#26408](facebook/react#26408)) //<Rubén Norte>//
- **[8fa41ffa2](facebook/react@8fa41ffa2 )**: Don't "fix up" mismatched text content with suppressedHydrationWarning ([#26391](facebook/react#26391)) //<Sebastian Markbåge>//
- **[05777ffb0](facebook/react@05777ffb0 )**: Setting transition pending flag shouldn't be part of a surrounding transition ([#26243](facebook/react#26243)) //<Sophie Alpert>//
- **[99aa082be](facebook/react@99aa082be )**: Remove unstable_flushControlled ([#26397](facebook/react#26397)) //<Jan Kassens>//
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...3554c88

jest_e2e[run_all_tests]
bypass-github-export-checks

Fixes tests for current React version.

Reviewed By: sammy-SC

Differential Revision: D44216371

fbshipit-source-id: a569c9aeaf2d96d150219e148f06dcde9ba6f7cd
jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
This sync includes the following changes:
- **[3554c8852](facebook/react@3554c8852 )**: Clean interface for public instances between React and React Native ([facebook#26416](facebook/react#26416)) //<Rubén Norte>//
- **[db281b3d9](facebook/react@db281b3d9 )**: Feature: Suspend commit without blocking render ([facebook#26398](facebook/react#26398)) //<Andrew Clark>//
- **[55308554e](facebook/react@55308554e )**: [www] enable enableFilterEmptyStringAttributesDOM flag ([facebook#26410](facebook/react#26410)) //<Jan Kassens>//
- **[163d86e19](facebook/react@163d86e19 )**: Updated comment message ([facebook#26158](facebook/react#26158)) //<Ibrahim Amin>//
- **[108aed083](facebook/react@108aed083 )**: Fix use of stale props in Fabric events ([facebook#26408](facebook/react#26408)) //<Rubén Norte>//
- **[8fa41ffa2](facebook/react@8fa41ffa2 )**: Don't "fix up" mismatched text content with suppressedHydrationWarning ([facebook#26391](facebook/react#26391)) //<Sebastian Markbåge>//
- **[05777ffb0](facebook/react@05777ffb0 )**: Setting transition pending flag shouldn't be part of a surrounding transition ([facebook#26243](facebook/react#26243)) //<Sophie Alpert>//
- **[99aa082be](facebook/react@99aa082be )**: Remove unstable_flushControlled ([facebook#26397](facebook/react#26397)) //<Jan Kassens>//
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([facebook#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([facebook#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([facebook#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([facebook#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([facebook#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([facebook#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([facebook#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([facebook#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([facebook#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([facebook#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([facebook#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([facebook#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([facebook#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([facebook#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([facebook#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([facebook#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([facebook#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([facebook#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([facebook#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([facebook#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([facebook#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([facebook#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([facebook#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([facebook#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([facebook#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([facebook#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([facebook#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([facebook#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([facebook#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([facebook#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([facebook#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([facebook#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([facebook#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([facebook#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([facebook#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([facebook#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([facebook#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([facebook#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([facebook#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([facebook#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([facebook#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([facebook#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([facebook#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([facebook#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([facebook#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([facebook#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([facebook#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([facebook#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([facebook#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([facebook#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([facebook#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([facebook#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([facebook#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([facebook#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([facebook#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([facebook#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([facebook#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([facebook#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([facebook#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([facebook#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([facebook#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([facebook#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([facebook#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([facebook#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([facebook#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([facebook#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([facebook#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([facebook#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([facebook#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([facebook#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([facebook#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([facebook#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([facebook#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([facebook#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([facebook#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([facebook#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([facebook#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([facebook#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([facebook#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([facebook#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([facebook#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...3554c88

jest_e2e[run_all_tests]
bypass-github-export-checks

@public

Fixes tests for current React version.

Reviewed By: sammy-SC

Differential Revision: D44216371

fbshipit-source-id: a569c9aeaf2d96d150219e148f06dcde9ba6f7cd
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([facebook#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([facebook#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([facebook#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([facebook#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([facebook#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([facebook#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([facebook#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([facebook#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([facebook#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([facebook#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([facebook#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([facebook#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([facebook#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([facebook#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([facebook#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([facebook#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([facebook#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([facebook#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([facebook#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([facebook#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([facebook#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([facebook#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([facebook#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([facebook#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([facebook#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([facebook#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([facebook#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([facebook#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([facebook#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([facebook#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([facebook#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([facebook#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([facebook#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([facebook#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([facebook#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([facebook#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([facebook#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([facebook#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([facebook#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([facebook#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([facebook#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([facebook#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([facebook#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([facebook#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([facebook#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([facebook#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([facebook#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([facebook#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([facebook#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([facebook#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([facebook#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([facebook#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([facebook#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([facebook#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([facebook#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([facebook#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([facebook#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([facebook#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([facebook#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([facebook#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([facebook#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([facebook#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([facebook#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([facebook#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([facebook#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([facebook#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([facebook#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([facebook#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([facebook#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([facebook#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([facebook#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([facebook#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([facebook#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([facebook#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...f828bad

jest_e2e[run_all_tests]

Reviewed By: robhogan, rshest

Differential Revision: D44024996

fbshipit-source-id: 8ac9754c5ffe12bd5d9c3499515c0925bd411f70
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([facebook#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([facebook#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([facebook#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([facebook#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([facebook#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([facebook#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([facebook#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([facebook#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([facebook#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([facebook#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([facebook#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([facebook#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([facebook#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([facebook#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([facebook#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([facebook#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([facebook#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([facebook#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([facebook#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([facebook#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([facebook#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([facebook#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([facebook#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([facebook#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([facebook#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([facebook#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([facebook#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([facebook#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([facebook#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([facebook#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([facebook#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([facebook#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([facebook#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([facebook#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([facebook#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([facebook#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([facebook#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([facebook#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([facebook#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([facebook#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([facebook#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([facebook#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([facebook#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([facebook#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([facebook#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([facebook#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([facebook#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([facebook#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([facebook#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([facebook#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([facebook#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([facebook#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([facebook#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([facebook#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([facebook#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([facebook#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([facebook#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([facebook#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([facebook#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([facebook#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([facebook#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([facebook#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([facebook#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([facebook#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([facebook#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([facebook#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([facebook#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([facebook#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([facebook#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([facebook#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([facebook#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([facebook#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([facebook#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([facebook#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([facebook#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([facebook#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([facebook#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([facebook#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([facebook#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([facebook#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([facebook#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...47cf4e5

jest_e2e[run_all_tests]

Reviewed By: sammy-SC

Differential Revision: D44090004

fbshipit-source-id: 6ac2d1d22a078d07ce011481063e78843bded28e
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
This sync includes the following changes:
- **[3554c8852](facebook/react@3554c8852 )**: Clean interface for public instances between React and React Native ([facebook#26416](facebook/react#26416)) //<Rubén Norte>//
- **[db281b3d9](facebook/react@db281b3d9 )**: Feature: Suspend commit without blocking render ([facebook#26398](facebook/react#26398)) //<Andrew Clark>//
- **[55308554e](facebook/react@55308554e )**: [www] enable enableFilterEmptyStringAttributesDOM flag ([facebook#26410](facebook/react#26410)) //<Jan Kassens>//
- **[163d86e19](facebook/react@163d86e19 )**: Updated comment message ([facebook#26158](facebook/react#26158)) //<Ibrahim Amin>//
- **[108aed083](facebook/react@108aed083 )**: Fix use of stale props in Fabric events ([facebook#26408](facebook/react#26408)) //<Rubén Norte>//
- **[8fa41ffa2](facebook/react@8fa41ffa2 )**: Don't "fix up" mismatched text content with suppressedHydrationWarning ([facebook#26391](facebook/react#26391)) //<Sebastian Markbåge>//
- **[05777ffb0](facebook/react@05777ffb0 )**: Setting transition pending flag shouldn't be part of a surrounding transition ([facebook#26243](facebook/react#26243)) //<Sophie Alpert>//
- **[99aa082be](facebook/react@99aa082be )**: Remove unstable_flushControlled ([facebook#26397](facebook/react#26397)) //<Jan Kassens>//
- **[47cf4e578](facebook/react@47cf4e578 )**: Restore some guards in ReactFabricGlobalResponderHandler after refactor ([facebook#26394](facebook/react#26394)) //<Rubén Norte>//
- **[cfc1274e3](facebook/react@cfc1274e3 )**: Disable IE innerHTML workaround behind a flag ([facebook#26390](facebook/react#26390)) //<Sebastian Markbåge>//
- **[a57f40d83](facebook/react@a57f40d83 )**: Undo dependency injection of batching ([facebook#26389](facebook/react#26389)) //<Sebastian Markbåge>//
- **[d310d654a](facebook/react@d310d654a )**: Avoid meta programming to initialize functions in module scope  ([facebook#26388](facebook/react#26388)) //<Sebastian Markbåge>//
- **[21aee59e4](facebook/react@21aee59e4 )**: Delete unused DOM files ([facebook#26387](facebook/react#26387)) //<Sebastian Markbåge>//
- **[6bd53a5bd](facebook/react@6bd53a5bd )**: Remove FeatureFlags fork for `react-dom/unstable_testing` ([facebook#26383](facebook/react#26383)) //<Sebastian Markbåge>//
- **[2788d0d8d](facebook/react@2788d0d8d )**: Allow empty string to be passed to formAction ([facebook#26379](facebook/react#26379)) //<Sebastian Markbåge>//
- **[f828bad38](facebook/react@f828bad38 )**: Extracted definition and access to public instances to a separate module in Fabric ([facebook#26321](facebook/react#26321)) //<Rubén Norte>//
- **[131768166](facebook/react@131768166 )**: Support Context as renderable node ([facebook#25641](facebook/react#25641)) //<Andrew Clark>//
- **[d4f58c3b8](facebook/react@d4f58c3b8 )**: Support Promise as a renderable node  ([facebook#25634](facebook/react#25634)) //<Andrew Clark>//
- **[633461486](facebook/react@633461486 )**: Add disableLegacyContext test gates where needed ([facebook#26371](facebook/react#26371)) //<Andrew Clark>//
- **[432ffc9d0](facebook/react@432ffc9d0 )**: Convert more Scheduler.unstable_flushAll in tests to new test utils ([facebook#26369](facebook/react#26369)) //<Tianyu Yao>//
- **[69fd78fe3](facebook/react@69fd78fe3 )**: Update Float tests to check for specific errors ([facebook#26367](facebook/react#26367)) //<Andrew Clark>//
- **[93c10dfa6](facebook/react@93c10dfa6 )**: flushSync: Exhaust queue even if something throws ([facebook#26366](facebook/react#26366)) //<Andrew Clark>//
- **[be353d251](facebook/react@be353d251 )**: [Flight Reply] Add undefined and Iterable Support ([facebook#26365](facebook/react#26365)) //<Sebastian Markbåge>//
- **[ef8bdbecb](facebook/react@ef8bdbecb )**: [Flight Reply] Add Reply Encoding ([facebook#26360](facebook/react#26360)) //<Sebastian Markbåge>//
- **[a8875eab7](facebook/react@a8875eab7 )**: Update more tests to not rely on sync queuing ([facebook#26358](facebook/react#26358)) //<Andrew Clark>//
- **[d1ad984db](facebook/react@d1ad984db )**: [Flight] Add support for returning `undefined` from render ([facebook#26349](facebook/react#26349)) //<Sebastian Silbermann>//
- **[39d4b9365](facebook/react@39d4b9365 )**: [Internal tests] Close MessageChannel port to prevent leak ([facebook#26357](facebook/react#26357)) //<Andrew Clark>//
- **[3706edb81](facebook/react@3706edb81 )**: [Float][Fizz]: Don't preload nomodule scripts ([facebook#26353](facebook/react#26353)) //<Josh Story>//
- **[2b003a5cc](facebook/react@2b003a5cc )**: Split out ServerReferenceMetadata into Id and Bound Arguments ([facebook#26351](facebook/react#26351)) //<Sebastian Markbåge>//
- **[62cd5af08](facebook/react@62cd5af08 )**: Codemod redundant async act scopes ([facebook#26350](facebook/react#26350)) //<Andrew Clark>//
- **[037378202](facebook/react@037378202 )**: Internal `act`: Call scope function after an async gap ([facebook#26347](facebook/react#26347)) //<Andrew Clark>//
- **[d8e49f2af](facebook/react@d8e49f2af )**: Use setTimeout to schedule work on the server in Edge environments ([facebook#26348](facebook/react#26348)) //<Sebastian Markbåge>//
- **[83643778b](facebook/react@83643778b )**: Internal test helpers: Use Node's MessageChannel to queue task ([facebook#26345](facebook/react#26345)) //<Andrew Clark>//
- **[44d380794](facebook/react@44d380794 )**: Move internalAct to internal-test-utils package ([facebook#26344](facebook/react#26344)) //<Andrew Clark>//
- **[d81447304](facebook/react@d81447304 )**: [Internal API only] Delete non-awaited form of act ([facebook#26339](facebook/react#26339)) //<Andrew Clark>//
- **[702fc984e](facebook/react@702fc984e )**: Codemod act -> await act (4/?) ([facebook#26338](facebook/react#26338)) //<Andrew Clark>//
- **[9fb2469a6](facebook/react@9fb2469a6 )**: Restore definition of NativeMethods as an object for React Native ([facebook#26341](facebook/react#26341)) //<Rubén Norte>//
- **[161f6ae42](facebook/react@161f6ae42 )**: Codemod act -> await act (3/?) ([facebook#26336](facebook/react#26336)) //<Andrew Clark>//
- **[58605f798](facebook/react@58605f798 )**: Codemod act -> await act (2/?) ([facebook#26335](facebook/react#26335)) //<Andrew Clark>//
- **[703c67560](facebook/react@703c67560 )**: Codemod act -> await act (1/?) ([facebook#26334](facebook/react#26334)) //<Andrew Clark>//
- **[b380c2485](facebook/react@b380c2485 )**: Convert class equivlance tests to flushSync ([facebook#26333](facebook/react#26333)) //<Andrew Clark>//
- **[8f812e75d](facebook/react@8f812e75d )**: Refactor ReactFabricHostComponent ([facebook#26323](facebook/react#26323)) //<Rubén Norte>//
- **[978fae4b4](facebook/react@978fae4b4 )**: [Float][Fiber] implement a faster hydration match for hoistable elements ([facebook#26154](facebook/react#26154)) //<Josh Story>//
- **[8a9f82ed5](facebook/react@8a9f82ed5 )**: [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts ([facebook#26256](facebook/react#26256)) //<Josh Story>//
- **[3cad3a54e](facebook/react@3cad3a54e )**: Use content hash for facebook-www builds ([facebook#26331](facebook/react#26331)) //<Jan Kassens>//
- **[ba353a50a](facebook/react@ba353a50a )**: Build: make version in build artifacts match ([facebook#26329](facebook/react#26329)) //<Jan Kassens>//
- **[6e1756a5a](facebook/react@6e1756a5a )**: Move suspended render logic to ensureRootIsScheduled ([facebook#26328](facebook/react#26328)) //<Andrew Clark>//
- **[1528c5ccd](facebook/react@1528c5ccd )**: SchedulerMock.unstable_yieldValue -> SchedulerMock.log ([facebook#26312](facebook/react#26312)) //<Andrew Clark>//
- **[4bbac04cd](facebook/react@4bbac04cd )**: Upgrade Flow to 0.201 ([facebook#26326](facebook/react#26326)) //<Jan Kassens>//
- **[eb616a12f](facebook/react@eb616a12f )**: Extract duplicated methods in Fabric and the legacy renderer to a shared module ([facebook#26319](facebook/react#26319)) //<Rubén Norte>//
- **[49f741046](facebook/react@49f741046 )**: Fix: Infinite act loop caused by wrong shouldYield ([facebook#26317](facebook/react#26317)) //<Andrew Clark>//
- **[106ea1c58](facebook/react@106ea1c58 )**: Support Iterables in Flight ([facebook#26313](facebook/react#26313)) //<Sebastian Markbåge>//
- **[f905da227](facebook/react@f905da227 )**: [Flight] Send server reference error chunks to the client ([facebook#26293](facebook/react#26293)) //<Hendrik Liebau>//
- **[e0241b660](facebook/react@e0241b660 )**: Simplify Webpack References by encoding file path + export name as single id ([facebook#26300](facebook/react#26300)) //<Sebastian Markbåge>//
- **[25685d8a9](facebook/react@25685d8a9 )**: Codemod tests to waitFor pattern (9/?) ([facebook#26309](facebook/react#26309)) //<Andrew Clark>//
- **[64dde7082](facebook/react@64dde7082 )**: Codemod tests to waitFor pattern (8/?) ([facebook#26308](facebook/react#26308)) //<Andrew Clark>//
- **[3cb5afb82](facebook/react@3cb5afb82 )**: Codemod tests to waitFor pattern (7/?) ([facebook#26307](facebook/react#26307)) //<Andrew Clark>//
- **[e98695db9](facebook/react@e98695db9 )**: Codemod tests to waitFor pattern (6/?) ([facebook#26305](facebook/react#26305)) //<Andrew Clark>//
- **[9a52cc8bc](facebook/react@9a52cc8bc )**: Convert ReactLazy-test to waitFor pattern ([facebook#26304](facebook/react#26304)) //<Andrew Clark>//
- **[03462cfc7](facebook/react@03462cfc7 )**: [Fizz] External runtime: fix bug in processing existing elements ([facebook#26303](facebook/react#26303)) //<mofeiZ>//
- **[faacefb4d](facebook/react@faacefb4d )**: Codemod tests to waitFor pattern (4/?) ([facebook#26302](facebook/react#26302)) //<Andrew Clark>//
- **[06460b6fb](facebook/react@06460b6fb )**: Remove unnecessary (and incorrect) code for compatibility with Paper in the Fabric version of GlobalResponderHandler ([facebook#26290](facebook/react#26290)) //<Rubén Norte>//
- **[ce8a72fd4](facebook/react@ce8a72fd4 )**: Codemod tests to waitFor pattern (2/?) ([facebook#26296](facebook/react#26296)) //<Andrew Clark>//
- **[1f1f8eb55](facebook/react@1f1f8eb55 )**: [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush ([facebook#26280](facebook/react#26280)) //<Josh Story>//
- **[5c633a48f](facebook/react@5c633a48f )**: Add back accidentally deleted test comments ([facebook#26294](facebook/react#26294)) //<Andrew Clark>//
- **[b72ed698f](facebook/react@b72ed698f )**: Fixed incorrect value returned as public instance from reconciler ([facebook#26283](facebook/react#26283)) //<Rubén Norte>//
- **[25a8b9735](facebook/react@25a8b9735 )**: Codemod tests to waitFor pattern (1/?) ([facebook#26288](facebook/react#26288)) //<Andrew Clark>//
- **[e52446733](facebook/react@e52446733 )**: New internal testing helpers: waitFor, waitForAll, waitForPaint ([facebook#26285](facebook/react#26285)) //<Andrew Clark>//
- **[d49e0e0be](facebook/react@d49e0e0be )**: Removed unused imperative events implementation from React Native renderer ([facebook#26282](facebook/react#26282)) //<Rubén Norte>//
- **[41110021f](facebook/react@41110021f )**: Fix: Selective hydration causing incorrect thenable type passed to DevTools ([facebook#26275](facebook/react#26275)) //<Andrew Clark>//
- **[67a61d5bd](facebook/react@67a61d5bd )**: [Flight Fixture] Show SSR Support with CSS ([facebook#26263](facebook/react#26263)) //<Sebastian Markbåge>//
- **[40755c01a](facebook/react@40755c01a )**: [Flight Fixture] Proxy requests through the global server instead of directly ([facebook#26257](facebook/react#26257)) //<Sebastian Markbåge>//
- **[b2ae9ddb3](facebook/react@b2ae9ddb3 )**: Cleanup enableSyncDefaultUpdate flag ([facebook#26236](facebook/react#26236)) //<Jan Kassens>//
- **[6ff1733e6](facebook/react@6ff1733e6 )**: [Float][Fizz][Fiber] support type for ReactDOM.preload() options ([facebook#26239](facebook/react#26239)) //<Josh Story>//
- **[1173a17e6](facebook/react@1173a17e6 )**: [Float][Fizz][Fiber] implement preconnect and prefetchDNS float methods ([facebook#26237](facebook/react#26237)) //<Josh Story>//
- **[a8f971b7a](facebook/react@a8f971b7a )**: Switch to mount dispatcher after use() when needed ([facebook#26232](facebook/react#26232)) //<Sophie Alpert>//
- **[96cdeaf89](facebook/react@96cdeaf89 )**: [Fizz Node] Fix null bytes written at text chunk boundaries ([facebook#26228](facebook/react#26228)) //<Sophie Alpert>//
- **[c04b18070](facebook/react@c04b18070 )**: Remove eventTime field from class Update type ([facebook#26219](facebook/react#26219)) //<Andrew Clark>//
- **[60144a04d](facebook/react@60144a04d )**: Split out Edge and Node implementations of the Flight Client ([facebook#26187](facebook/react#26187)) //<Sebastian Markbåge>//
- **[70b0bbda7](facebook/react@70b0bbda7 )**: [fizz][external-runtime] Fix: process mutation records before disconnecting ([facebook#26169](facebook/react#26169)) //<mofeiZ>//
- **[c7967b194](facebook/react@c7967b194 )**: Distribute bundles more evenly into CI shards ([facebook#26208](facebook/react#26208)) //<Sebastian Silbermann>//
- **[bb1e3d0e1](facebook/react@bb1e3d0e1 )**: Fail yarn build if any bundle fails to build ([facebook#26207](facebook/react#26207)) //<Sebastian Silbermann>//
- **[62e6c4612](facebook/react@62e6c4612 )**: Move Mutation/Persistence fork inline into the functions ([facebook#26206](facebook/react#26206)) //<Sebastian Markbåge>//
- **[80cf4a099](facebook/react@80cf4a099 )**: Update Closure Compiler ([facebook#26205](facebook/react#26205)) //<Sebastian Markbåge>//
- **[6b6d0617e](facebook/react@6b6d0617e )**: Update Rollup and related plugins to their most recent versions ([facebook#24916](facebook/react#24916)) //<Glenn 'devalias' Grant>//
- **[bc38a3dfa](facebook/react@bc38a3dfa )**: Update rollup config to use moduleSideEffects ([facebook#26199](facebook/react#26199)) //<Ming Ye>//
- **[c9d9f524d](facebook/react@c9d9f524d )**: Make enableCustomElementPropertySupport a dynamic flag in www build ([facebook#26194](facebook/react#26194)) //<Andrew Clark>//
- **[189f70e17](facebook/react@189f70e17 )**: Create a bunch of custom webpack vs unbundled node bundles ([facebook#26172](facebook/react#26172)) //<Sebastian Markbåge>//
- **[fbf3bc315](facebook/react@fbf3bc315 )**: Add `scale` as a unitless property ([facebook#25601](facebook/react#25601)) //<Jonny Burger>//

Changelog:
[General][Changed] - React Native sync for revisions fccf3a9...3554c88

jest_e2e[run_all_tests]
bypass-github-export-checks

@public

Fixes tests for current React version.

Reviewed By: sammy-SC

Differential Revision: D44216371

fbshipit-source-id: a569c9aeaf2d96d150219e148f06dcde9ba6f7cd
alexandresoro pushed a commit to alexandresoro/ouca-web that referenced this pull request Jan 17, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | devDependencies | major | [`18.3.18` -> `19.0.7`](https://renovatebot.com/diffs/npm/@types%2freact/18.3.18/19.0.7) |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)) | devDependencies | major | [`18.3.5` -> `19.0.3`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.3.5/19.0.3) |
| [react](https://react.dev/) ([source](https://github.com/facebook/react/tree/HEAD/packages/react)) | dependencies | major | [`18.3.1` -> `19.0.0`](https://renovatebot.com/diffs/npm/react/18.3.1/19.0.0) |
| [react-dom](https://react.dev/) ([source](https://github.com/facebook/react/tree/HEAD/packages/react-dom)) | dependencies | major | [`18.3.1` -> `19.0.0`](https://renovatebot.com/diffs/npm/react-dom/18.3.1/19.0.0) |

---

### Release Notes

<details>
<summary>facebook/react (react)</summary>

### [`v19.0.0`](https://github.com/facebook/react/blob/HEAD/CHANGELOG.md#1900-December-5-2024)

[Compare Source](https://github.com/facebook/react/compare/v18.3.1...v19.0.0)

Below is a list of all new features, APIs, deprecations, and breaking changes. Read [React 19 release post](https://react.dev/blog/2024/04/25/react-19) and [React 19 upgrade guide](https://react.dev/blog/2024/04/25/react-19-upgrade-guide) for more information.

> Note: To help make the upgrade to React 19 easier, we’ve published a [email protected] release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.

##### New Features

##### React

-   Actions: `startTransition` can now accept async functions. Functions passed to `startTransition` are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like `fetch()` in the pending state, and provides support for error handling, and optimistic updates.
-   `useActionState`: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form `action` prop to support progressive enhancement in forms.
-   `useOptimistic`: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.
-   `use`: is a new API that allows reading resources in render. In React 19, `use` accepts a promise or Context. If provided a promise, `use` will suspend until a value is resolved. `use` can only be used in render but can be called conditionally.
-   `ref` as a prop: Refs can now be used as props, removing the need for `forwardRef`.
-   **Suspense sibling pre-warming**: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.

##### React DOM Client

-   `<form> action` prop: Form Actions allow you to manage forms automatically and integrate with `useFormStatus`. When a `<form> action` succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new `requestFormReset` API.
-   `<button> and <input> formAction` prop: Actions can be passed to the `formAction` prop to configure form submission behavior. This allows using different Actions depending on the input.
-   `useFormStatus`: is a new hook that provides the status of the parent `<form> action`, as if the form was a Context provider. The hook returns the values: `pending`, `data`, `method`, and `action`.
-   Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the `<head>` section of the document.
-   Support for Stylesheets: React 19 will ensure stylesheets are inserted into the `<head>` on the client before revealing the content of a Suspense boundary that depends on that stylesheet.
-   Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.
-   Support for preloading resources: React 19 ships with `preinit`, `preload`, `prefetchDNS`, and `preconnect` APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.

##### React DOM Server

-   Added `prerender` and `prerenderToNodeStream` APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike `renderToString`, they wait for data to load for HTML generation.

##### React Server Components

-   RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See [docs](https://19.react.dev/reference/rsc/server-components) for how to support React Server Components.

##### Deprecations

-   Deprecated: `element.ref` access: React 19 supports ref as a prop, so we’re deprecating `element.ref` in favor of `element.props.ref`. Accessing will result in a warning.
-   `react-test-renderer`: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to  [@&#8203;testing-library/react](https://testing-library.com/docs/react-testing-library/intro/) or [@&#8203;testing-library/react-native](https://testing-library.com/docs/react-native-testing-library/intro)

##### Breaking Changes

React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to `18.3.1`, where we've added additional deprecation warnings. Check out the [upgrade guide](https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide) for more details and guidance on codemodding.

##### React

-   New JSX Transform is now required: We introduced [a new JSX transform](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.
-   Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced `onUncaughtError` and `onCaughtError` methods to `createRoot` and `hydrateRoot` to customize this error handling.
-   Removed: `propTypes`: Using `propTypes` will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.
-   Removed: `defaultProps` for functions: ES6 default parameters can be used in place. Class components continue to support `defaultProps` since there is no ES6 alternative.
-   Removed: `contextTypes` and `getChildContext`: Legacy Context for class components has been removed in favor of the `contextType` API.
-   Removed: string refs: Any usage of string refs need to be migrated to ref callbacks.
-   Removed: Module pattern factories: A rarely used pattern that can be migrated to regular functions.
-   Removed: `React.createFactory`: Now that JSX is broadly supported, all `createFactory` usage can be migrated to JSX components.
-   Removed: `react-test-renderer/shallow`: This has been a re-export of [react-shallow-renderer](https://github.com/enzymejs/react-shallow-renderer) since React 18. If needed, you can continue to use the third-party package directly. We recommend using [@&#8203;testing-library/react](https://testing-library.com/docs/react-testing-library/intro/) or [@&#8203;testing-library/react-native](https://testing-library.com/docs/react-native-testing-library/intro) instead.

##### React DOM

-   Removed: `react-dom/test-utils`: We’ve moved `act` from `react-dom/test-utils` to react. All other utilities have been removed.
-   Removed: `ReactDOM`.`render`, `ReactDOM`.`hydrate`: These have been removed in favor of the concurrent equivalents: `ReactDOM`.`createRoot` and `ReactDOM.hydrateRoot`.
-   Removed: `unmountComponentAtNode`: Removed in favor of `root.unmount()`.
-   Removed: `ReactDOM`.`findDOMNode`: You can replace `ReactDOM`.`findDOMNode` with DOM Refs.

##### Notable Changes

##### React

-   `<Context>` as a provider: You can now render `<Context>` as a provider instead of `<Context.Provider>`.
-   Cleanup functions for refs: When the component unmounts, React will call the cleanup function returned from the ref callback.
-   `useDeferredValue` initial value argument: When provided, `useDeferredValue` will return the initial value for the initial render of a component, then schedule a re-render in the background with the `deferredValue` returned.
-   Support for Custom Elements: React 19 now passes all tests on [Custom Elements Everywhere](https://custom-elements-everywhere.com/).
-   StrictMode changes: `useMemo` and `useCallback` will now reuse the memoized results from the first render, during the second render. Additionally, StrictMode will now double-invoke ref callback functions on initial mount.
-   UMD builds removed: To load React 19 with a script tag, we recommend using an ESM-based CDN such as [esm.sh](http://esm.sh).

##### React DOM

-   Diffs for hydration errors: In the case of a mismatch, React 19 logs a single error with a diff of the mismatched content.
-   Compatibility with third-party scripts and extensions: React will now force a client re-render to fix up any mismatched content caused by elements inserted by third-party JS.

##### TypeScript Changes

The most common changes can be codemodded with `npx types-react-codemod@latest preset-19 ./path-to-your-react-ts-files`.

-   Removed deprecated TypeScript types:
    -   `ReactChild` (replacement: `React.ReactElement | number | string)`
    -   `ReactFragment` (replacement: `Iterable<React.ReactNode>`)
    -   `ReactNodeArray` (replacement: `ReadonlyArray<React.ReactNode>`)
    -   `ReactText` (replacement: `number | string`)
    -   `VoidFunctionComponent` (replacement: `FunctionComponent`)
    -   `VFC` (replacement: `FC`)
    -   Moved to `prop-types`: `Requireable`, `ValidationMap`, `Validator`, `WeakValidationMap`
    -   Moved to `create-react-class`: `ClassicComponentClass`, `ClassicComponent`, `ClassicElement`, `ComponentSpec`, `Mixin`, `ReactChildren`, `ReactHTML`, `ReactSVG`, `SFCFactory`
-   Disallow implicit return in refs: refs can now accept cleanup functions. When you return something else, we can’t tell if you intentionally returned something not meant to clean up or returned the wrong value. Implicit returns of anything but functions will now error.
-   Require initial argument to `useRef`: The initial argument is now required to match `useState`, `createContext` etc
-   Refs are mutable by default: Ref objects returned from `useRef()` are now always mutable instead of sometimes being immutable. This feature was too confusing for users and conflicted with legit cases where refs were managed by React and manually written to.
-   Strict `ReactElement` typing: The props of React elements now default to `unknown` instead of `any` if the element is typed as `ReactElement`
-   JSX namespace in TypeScript: The global `JSX` namespace is removed to improve interoperability with other libraries using JSX. Instead, the JSX namespace is available from the React package: `import { JSX } from 'react'`
-   Better `useReducer` typings: Most `useReducer` usage should not require explicit type arguments.\
    For example,
    ```diff
    -useReducer<React.Reducer<State, Action>>(reducer)
    +useReducer(reducer)
    ```
    or
    ```diff
    -useReducer<React.Reducer<State, Action>>(reducer)
    +useReducer<State, Action>(reducer)
    ```

##### All Changes

##### React

-   Add support for async Actions ([#&#8203;26621](https://github.com/facebook/react/pull/26621), [#&#8203;26726](https://github.com/facebook/react/pull/26726), [#&#8203;28078](https://github.com/facebook/react/pull/28078), [#&#8203;28097](https://github.com/facebook/react/pull/28097), [#&#8203;29226](https://github.com/facebook/react/pull/29226), [#&#8203;29618](https://github.com/facebook/react/pull/29618), [#&#8203;29670](https://github.com/facebook/react/pull/29670), [#&#8203;26716](https://github.com/facebook/react/pull/26716) by [@&#8203;acdlite](https://github.com/acdlite) and [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Add `useActionState()` hook to update state based on the result of a Form Action ([#&#8203;27270](https://github.com/facebook/react/pull/27270), [#&#8203;27278](https://github.com/facebook/react/pull/27278), [#&#8203;27309](https://github.com/facebook/react/pull/27309), [#&#8203;27302](https://github.com/facebook/react/pull/27302), [#&#8203;27307](https://github.com/facebook/react/pull/27307), [#&#8203;27366](https://github.com/facebook/react/pull/27366), [#&#8203;27370](https://github.com/facebook/react/pull/27370), [#&#8203;27321](https://github.com/facebook/react/pull/27321), [#&#8203;27374](https://github.com/facebook/react/pull/27374), [#&#8203;27372](https://github.com/facebook/react/pull/27372), [#&#8203;27397](https://github.com/facebook/react/pull/27397), [#&#8203;27399](https://github.com/facebook/react/pull/27399), [#&#8203;27460](https://github.com/facebook/react/pull/27460), [#&#8203;28557](https://github.com/facebook/react/pull/28557), [#&#8203;27570](https://github.com/facebook/react/pull/27570), [#&#8203;27571](https://github.com/facebook/react/pull/27571), [#&#8203;28631](https://github.com/facebook/react/pull/28631), [#&#8203;28788](https://github.com/facebook/react/pull/28788), [#&#8203;29694](https://github.com/facebook/react/pull/29694), [#&#8203;29695](https://github.com/facebook/react/pull/29695), [#&#8203;29694](https://github.com/facebook/react/pull/29694), [#&#8203;29665](https://github.com/facebook/react/pull/29665), [#&#8203;28232](https://github.com/facebook/react/pull/28232), [#&#8203;28319](https://github.com/facebook/react/pull/28319) by [@&#8203;acdlite](https://github.com/acdlite), [@&#8203;eps1lon](https://github.com/eps1lon), and [@&#8203;rickhanlonii](https://github.com/rickhanlonii))
-   Add `use()` API to read resources in render ([#&#8203;25084](https://github.com/facebook/react/pull/25084), [#&#8203;25202](https://github.com/facebook/react/pull/25202), [#&#8203;25207](https://github.com/facebook/react/pull/25207), [#&#8203;25214](https://github.com/facebook/react/pull/25214), [#&#8203;25226](https://github.com/facebook/react/pull/25226), [#&#8203;25247](https://github.com/facebook/react/pull/25247), [#&#8203;25539](https://github.com/facebook/react/pull/25539), [#&#8203;25538](https://github.com/facebook/react/pull/25538), [#&#8203;25537](https://github.com/facebook/react/pull/25537), [#&#8203;25543](https://github.com/facebook/react/pull/25543), [#&#8203;25561](https://github.com/facebook/react/pull/25561), [#&#8203;25620](https://github.com/facebook/react/pull/25620), [#&#8203;25615](https://github.com/facebook/react/pull/25615), [#&#8203;25922](https://github.com/facebook/react/pull/25922), [#&#8203;25641](https://github.com/facebook/react/pull/25641), [#&#8203;25634](https://github.com/facebook/react/pull/25634), [#&#8203;26232](https://github.com/facebook/react/pull/26232), [#&#8203;26536](https://github.com/facebook/react/pull/26535), [#&#8203;26739](https://github.com/facebook/react/pull/26739), [#&#8203;28233](https://github.com/facebook/react/pull/28233) by [@&#8203;acdlite](https://github.com/acdlite), [@&#8203;MofeiZ](https://github.com/mofeiZ), [@&#8203;sebmarkbage](https://github.com/sebmarkbage), [@&#8203;sophiebits](https://github.com/sophiebits), [@&#8203;eps1lon](https://github.com/eps1lon), and [@&#8203;hansottowirtz](https://github.com/hansottowirtz))
-   Add `useOptimistic()` hook to display mutated state optimistically during an async mutation ([#&#8203;26740](https://github.com/facebook/react/pull/26740), [#&#8203;26772](https://github.com/facebook/react/pull/26772), [#&#8203;27277](https://github.com/facebook/react/pull/27277), [#&#8203;27453](https://github.com/facebook/react/pull/27453), [#&#8203;27454](https://github.com/facebook/react/pull/27454), [#&#8203;27936](https://github.com/facebook/react/pull/27936) by [@&#8203;acdlite](https://github.com/acdlite))
-   Added an `initialValue` argument to `useDeferredValue()` hook ([#&#8203;27500](https://github.com/facebook/react/pull/27500), [#&#8203;27509](https://github.com/facebook/react/pull/27509), [#&#8203;27512](https://github.com/facebook/react/pull/27512), [#&#8203;27888](https://github.com/facebook/react/pull/27888), [#&#8203;27550](https://github.com/facebook/react/pull/27550) by [@&#8203;acdlite](https://github.com/acdlite))
-   Support refs as props, warn on `element.ref` access ([#&#8203;28348](https://github.com/facebook/react/pull/28348), [#&#8203;28464](https://github.com/facebook/react/pull/28464), [#&#8203;28731](https://github.com/facebook/react/pull/28731) by [@&#8203;acdlite](https://github.com/acdlite))
-   Support Custom Elements ([#&#8203;22184](https://github.com/facebook/react/pull/22184), [#&#8203;26524](https://github.com/facebook/react/pull/26524), [#&#8203;26523](https://github.com/facebook/react/pull/26523), [#&#8203;27511](https://github.com/facebook/react/pull/27511), [#&#8203;24541](https://github.com/facebook/react/pull/24541) by [@&#8203;josepharhar](https://github.com/josepharhar), [@&#8203;sebmarkbage](https://github.com/sebmarkbage), [@&#8203;gnoff](https://github.com/gnoff) and [@&#8203;eps1lon](https://github.com/eps1lon))
-   Add ref cleanup function ([#&#8203;25686](https://github.com/facebook/react/pull/25686), [#&#8203;28883](https://github.com/facebook/react/pull/28883), [#&#8203;28910](https://github.com/facebook/react/pull/28910)  by [@&#8203;sammy-SC](https://github.com/sammy-SC), [@&#8203;jackpope](https://github.com/jackpope), and [@&#8203;kassens](https://github.com/kassens))
-   Sibling pre-rendering replaced by sibling pre-warming ([#&#8203;26380](https://github.com/facebook/react/pull/26380), [#&#8203;26549](https://github.com/facebook/react/pull/26549), [#&#8203;30761](https://github.com/facebook/react/pull/30761), [#&#8203;30800](https://github.com/facebook/react/pull/30800), [#&#8203;30762](https://github.com/facebook/react/pull/30762), [#&#8203;30879](https://github.com/facebook/react/pull/30879), [#&#8203;30934](https://github.com/facebook/react/pull/30934), [#&#8203;30952](https://github.com/facebook/react/pull/30952), [#&#8203;31056](https://github.com/facebook/react/pull/31056), [#&#8203;31452](https://github.com/facebook/react/pull/31452) by [@&#8203;sammy-SC](https://github.com/sammy-SC), [@&#8203;acdlite](https://github.com/acdlite), [@&#8203;gnoff](https://github.com/gnoff), [@&#8203;jackpope](https://github.com/jackpope), [@&#8203;rickhanlonii](https://github.com/rickhanlonii))
-   Don’t rethrow errors at the root ([#&#8203;28627](https://github.com/facebook/react/pull/28627), [#&#8203;28641](https://github.com/facebook/react/pull/28641) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Batch sync discrete, continuous, and default lanes ([#&#8203;25700](https://github.com/facebook/react/pull/25700) by [@&#8203;tyao1](https://github.com/tyao1))
-   Switch `<Context>` to mean `<Context.Provider>` ([#&#8203;28226](https://github.com/facebook/react/pull/28226) by [@&#8203;gaearon](https://github.com/gaearon))
-   Changes to *StrictMode*
    -   Handle `info`, `group`, and `groupCollapsed` in *StrictMode* logging ([#&#8203;25172](https://github.com/facebook/react/pull/25172) by [@&#8203;timneutkens](https://github.com/timneutkens))
    -   Refs are now attached/detached/attached in *StrictMode* ([#&#8203;25049](https://github.com/facebook/react/pull/25049) by [@&#8203;sammy-SC](https://github.com/sammy-SC))
    -   Fix `useSyncExternalStore()` hydration in *StrictMode* ([#&#8203;26791](https://github.com/facebook/react/pull/26791) by [@&#8203;sophiebits](https://github.com/sophiebits))
    -   Always trigger `componentWillUnmount()` in *StrictMode* ([#&#8203;26842](https://github.com/facebook/react/pull/26842) by [@&#8203;tyao1](https://github.com/tyao1))
    -   Restore double invoking `useState()` and `useReducer()` initializer functions in *StrictMode* ([#&#8203;28248](https://github.com/facebook/react/pull/28248) by [@&#8203;eps1lon](https://github.com/eps1lon))
    -   Reuse memoized result from first pass ([#&#8203;25583](https://github.com/facebook/react/pull/25583) by [@&#8203;acdlite](https://github.com/acdlite))
    -   Fix `useId()` in *StrictMode* ([#&#8203;25713](https://github.com/facebook/react/pull/25713) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Add component name to *StrictMode* error messages ([#&#8203;25718](https://github.com/facebook/react/pull/25718) by [@&#8203;sammy-SC](https://github.com/sammy-SC))
-   Add support for rendering BigInt ([#&#8203;24580](https://github.com/facebook/react/pull/24580) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   `act()` no longer checks `shouldYield` which can be inaccurate in test environments ([#&#8203;26317](https://github.com/facebook/react/pull/26317) by [@&#8203;acdlite](https://github.com/acdlite))
-   Warn when keys are spread with props ([#&#8203;25697](https://github.com/facebook/react/pull/25697), [#&#8203;26080](https://github.com/facebook/react/pull/26080) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage) and [@&#8203;kassens](https://github.com/kassens))
-   Generate sourcemaps for production build artifacts ([#&#8203;26446](https://github.com/facebook/react/pull/26446) by [@&#8203;markerikson](https://github.com/markerikson))
-   Improve stack diffing algorithm ([#&#8203;27132](https://github.com/facebook/react/pull/27132) by [@&#8203;KarimP](https://github.com/KarimP))
-   Suspense throttling lowered from 500ms to 300ms ([#&#8203;26803](https://github.com/facebook/react/pull/26803) by [@&#8203;acdlite](https://github.com/acdlite))
-   Lazily propagate context changes ([#&#8203;20890](https://github.com/facebook/react/pull/20890) by [@&#8203;acdlite](https://github.com/acdlite) and [@&#8203;gnoff](https://github.com/gnoff))
-   Immediately rerender pinged fiber ([#&#8203;25074](https://github.com/facebook/react/pull/25074) by [@&#8203;acdlite](https://github.com/acdlite))
-   Move update scheduling to microtask ([#&#8203;26512](https://github.com/facebook/react/pull/26512) by [@&#8203;acdlite](https://github.com/acdlite))
-   Consistently apply throttled retries ([#&#8203;26611](https://github.com/facebook/react/pull/26611), [#&#8203;26802](https://github.com/facebook/react/pull/26802) by [@&#8203;acdlite](https://github.com/acdlite))
-   Suspend Thenable/Lazy if it's used in React.Children ([#&#8203;28284](https://github.com/facebook/react/pull/28284) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Detect infinite update loops caused by render phase updates ([#&#8203;26625](https://github.com/facebook/react/pull/26625) by [@&#8203;acdlite](https://github.com/acdlite))
-   Update conditional hooks warning ([#&#8203;29626](https://github.com/facebook/react/pull/29626) by [@&#8203;sophiebits](https://github.com/sophiebits))
-   Update error URLs to go to new docs ([#&#8203;27240](https://github.com/facebook/react/pull/27240) by [@&#8203;rickhanlonii](https://github.com/rickhanlonii))
-   Rename the `react.element` symbol to `react.transitional.element` ([#&#8203;28813](https://github.com/facebook/react/pull/28813) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Fix crash when suspending in shell during `useSyncExternalStore()` re-render ([#&#8203;27199](https://github.com/facebook/react/pull/27199) by [@&#8203;acdlite](https://github.com/acdlite))
-   Fix incorrect “detected multiple renderers" error in tests ([#&#8203;22797](https://github.com/facebook/react/pull/22797) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Fix bug where effect cleanup may be called twice after bailout ([#&#8203;26561](https://github.com/facebook/react/pull/26561) by [@&#8203;acdlite](https://github.com/acdlite))
-   Fix suspending in shell during discrete update ([#&#8203;25495](https://github.com/facebook/react/pull/25495) by [@&#8203;acdlite](https://github.com/acdlite))
-   Fix memory leak after repeated setState bailouts ([#&#8203;25309](https://github.com/facebook/react/pull/25309) by [@&#8203;acdlite](https://github.com/acdlite))
-   Fix `useSyncExternalStore()` dropped update when state is dispatched in render phase ([#&#8203;25578](https://github.com/facebook/react/pull/25578) by [@&#8203;pandaiolo](https://github.com/pandaiolo))
-   Fix logging when rendering a lazy fragment ([#&#8203;30372](https://github.com/facebook/react/pull/30372) by [@&#8203;tom-sherman](https://github.com/tom-sherman))
-   Remove string refs ([#&#8203;25383](https://github.com/facebook/react/pull/25383), [#&#8203;28322](https://github.com/facebook/react/pull/28322) by [@&#8203;eps1lon](https://github.com/eps1lon) and [@&#8203;acdlite](https://github.com/acdlite))
-   Remove Legacy Context ([#&#8203;30319](https://github.com/facebook/react/issues/30319) by [@&#8203;kassens](https://github.com/kassens))
-   Remove `RefreshRuntime.findAffectedHostInstances` ([#&#8203;30538](https://github.com/facebook/react/pull/30538) by [@&#8203;gaearon](https://github.com/gaearon))
-   Remove client caching from `cache()` API ([#&#8203;27977](https://github.com/facebook/react/pull/27977), [#&#8203;28250](https://github.com/facebook/react/pull/28250) by [@&#8203;acdlite](https://github.com/acdlite) and [@&#8203;gnoff](https://github.com/gnoff))
-   Remove `propTypes` ([#&#8203;28324](https://github.com/facebook/react/pull/28324), [#&#8203;28326](https://github.com/facebook/react/pull/28326) by [@&#8203;gaearon](https://github.com/gaearon))
-   Remove `defaultProps` support, except for classes ([#&#8203;28733](https://github.com/facebook/react/pull/28733) by [@&#8203;acdlite](https://github.com/acdlite))
-   Remove UMD builds ([#&#8203;28735](https://github.com/facebook/react/pull/28735) by [@&#8203;gnoff](https://github.com/gnoff))
-   Remove delay for non-transition updates ([#&#8203;26597](https://github.com/facebook/react/pull/26597) by [@&#8203;acdlite](https://github.com/acdlite))
-   Remove `createFactory` ([#&#8203;27798](https://github.com/facebook/react/pull/27798) by [@&#8203;kassens](https://github.com/kassens))

##### React DOM

-   Adds Form Actions to handle form submission ([#&#8203;26379](https://github.com/facebook/react/pull/26379), [#&#8203;26674](https://github.com/facebook/react/pull/26674), [#&#8203;26689](https://github.com/facebook/react/pull/26689), [#&#8203;26708](https://github.com/facebook/react/pull/26708), [#&#8203;26714](https://github.com/facebook/react/pull/26714),  [#&#8203;26735](https://github.com/facebook/react/pull/26735), [#&#8203;26846](https://github.com/facebook/react/pull/26846), [#&#8203;27358](https://github.com/facebook/react/pull/27358),  [#&#8203;28056](https://github.com/facebook/react/pull/28056) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage), [@&#8203;acdlite](https://github.com/acdlite), and [@&#8203;jupapios](https://github.com/jupapios))
-   Add `useFormStatus()` hook to provide status information of the last form submission ([#&#8203;26719](https://github.com/facebook/react/pull/26719), [#&#8203;26722](https://github.com/facebook/react/pull/26722), [#&#8203;26788](https://github.com/facebook/react/pull/26788),  [#&#8203;29019](https://github.com/facebook/react/pull/29019), [#&#8203;28728](https://github.com/facebook/react/pull/28728), [#&#8203;28413](https://github.com/facebook/react/pull/28413) by [@&#8203;acdlite](https://github.com/acdlite) and [@&#8203;eps1lon](https://github.com/eps1lon))
-   Support for Document Metadata. Adds `preinit`, `preinitModule`, `preconnect`, `prefetchDNS`, `preload`, and `preloadModule` APIs.
    -   [#&#8203;25060](https://github.com/facebook/react/pull/25060), [#&#8203;25243](https://github.com/facebook/react/pull/25243), [#&#8203;25388](https://github.com/facebook/react/pull/25388), [#&#8203;25432](https://github.com/facebook/react/pull/25432), [#&#8203;25436](https://github.com/facebook/react/pull/25436), [#&#8203;25426](https://github.com/facebook/react/pull/25426), [#&#8203;25500](https://github.com/facebook/react/pull/25500), [#&#8203;25480](https://github.com/facebook/react/pull/25480), [#&#8203;25508](https://github.com/facebook/react/pull/25508), [#&#8203;25515](https://github.com/facebook/react/pull/25515), [#&#8203;25514](https://github.com/facebook/react/pull/25514), [#&#8203;25532](https://github.com/facebook/react/pull/25532), [#&#8203;25536](https://github.com/facebook/react/pull/25536), [#&#8203;25534](https://github.com/facebook/react/pull/25534), [#&#8203;25546](https://github.com/facebook/react/pull/25546), [#&#8203;25559](https://github.com/facebook/react/pull/25559), [#&#8203;25569](https://github.com/facebook/react/pull/25569), [#&#8203;25599](https://github.com/facebook/react/pull/25599), [#&#8203;25689](https://github.com/facebook/react/pull/25689), [#&#8203;26106](https://github.com/facebook/react/pull/26106), [#&#8203;26152](https://github.com/facebook/react/pull/26152), [#&#8203;26239](https://github.com/facebook/react/pull/26239), [#&#8203;26237](https://github.com/facebook/react/pull/26237), [#&#8203;26280](https://github.com/facebook/react/pull/26280), [#&#8203;26154](https://github.com/facebook/react/pull/26154), [#&#8203;26256](https://github.com/facebook/react/pull/26256), [#&#8203;26353](https://github.com/facebook/react/pull/26353), [#&#8203;26427](https://github.com/facebook/react/pull/26427), [#&#8203;26450](https://github.com/facebook/react/pull/26450), [#&#8203;26502](https://github.com/facebook/react/pull/26502),  [#&#8203;26514](https://github.com/facebook/react/pull/26514), [#&#8203;26531](https://github.com/facebook/react/pull/26531), [#&#8203;26532](https://github.com/facebook/react/pull/26532), [#&#8203;26557](https://github.com/facebook/react/pull/26557), [#&#8203;26871](https://github.com/facebook/react/pull/26871), [#&#8203;26881](https://github.com/facebook/react/pull/26881), [#&#8203;26877](https://github.com/facebook/react/pull/26877), [#&#8203;26873](https://github.com/facebook/react/pull/26873), [#&#8203;26880](https://github.com/facebook/react/pull/26880), [#&#8203;26942](https://github.com/facebook/react/pull/26942), [#&#8203;26938](https://github.com/facebook/react/pull/26938), [#&#8203;26940](https://github.com/facebook/react/pull/26940), [#&#8203;26939](https://github.com/facebook/react/pull/26939), [#&#8203;27030](https://github.com/facebook/react/pull/27030), [#&#8203;27201](https://github.com/facebook/react/pull/27201), [#&#8203;27212](https://github.com/facebook/react/pull/27212), [#&#8203;27217](https://github.com/facebook/react/pull/27217), [#&#8203;27218](https://github.com/facebook/react/pull/27218), [#&#8203;27220](https://github.com/facebook/react/pull/27220), [#&#8203;27224](https://github.com/facebook/react/pull/27224), [#&#8203;27223](https://github.com/facebook/react/pull/27223), [#&#8203;27269](https://github.com/facebook/react/pull/27269), [#&#8203;27260](https://github.com/facebook/react/pull/27260), [#&#8203;27347](https://github.com/facebook/react/pull/27347), [#&#8203;27346](https://github.com/facebook/react/pull/27346), [#&#8203;27361](https://github.com/facebook/react/pull/27361), [#&#8203;27400](https://github.com/facebook/react/pull/27400), [#&#8203;27541](https://github.com/facebook/react/pull/27541), [#&#8203;27610](https://github.com/facebook/react/pull/27610), [#&#8203;28110](https://github.com/facebook/react/pull/28110), [#&#8203;29693](https://github.com/facebook/react/pull/29693), [#&#8203;29732](https://github.com/facebook/react/pull/29732), [#&#8203;29811](https://github.com/facebook/react/pull/29811), [#&#8203;27586](https://github.com/facebook/react/pull/27586), [#&#8203;28069](https://github.com/facebook/react/pull/28069) by [@&#8203;gnoff](https://github.com/gnoff), [@&#8203;sebmarkbage](https://github.com/sebmarkbage), [@&#8203;acdlite](https://github.com/acdlite), [@&#8203;kassens](https://github.com/kassens), [@&#8203;sokra](https://github.com/sokra), [@&#8203;sweetliquid](https://github.com/sweetliquid)
-   Add `fetchPriority` to `<img>` and `<link>` ([#&#8203;25927](https://github.com/facebook/react/pull/25927) by [@&#8203;styfle](https://github.com/styfle))
-   Add support for SVG `transformOrigin` prop ([#&#8203;26130](https://github.com/facebook/react/pull/26130) by [@&#8203;arav-ind](https://github.com/arav-ind))
-   Add support for `onScrollEnd` event ([#&#8203;26789](https://github.com/facebook/react/pull/26789) by [@&#8203;devongovett](https://github.com/devongovett))
-   Allow `<hr>` as child of `<select>` ([#&#8203;27632](https://github.com/facebook/react/pull/27632) by [@&#8203;SouSingh](https://github.com/SouSingh))
-   Add support for Popover API ([#&#8203;27981](https://github.com/facebook/react/pull/27981) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Add support for `inert` ([#&#8203;24730](https://github.com/facebook/react/pull/24730) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Add support for `imageSizes` and `imageSrcSet` ([#&#8203;22550](https://github.com/facebook/react/pull/22550) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Synchronously flush transitions in popstate events ([#&#8203;26025](https://github.com/facebook/react/pull/26025), [#&#8203;27559](https://github.com/facebook/react/pull/27559), [#&#8203;27505](https://github.com/facebook/react/pull/27505), [#&#8203;30759](https://github.com/facebook/react/pull/30759) by [@&#8203;tyao1](https://github.com/tyao1) and [@&#8203;acdlite](https://github.com/acdlite))
-   `flushSync` exhausts queue even if something throws ([#&#8203;26366](https://github.com/facebook/react/pull/26366) by [@&#8203;acdlite](https://github.com/acdlite))
-   Throw error if `react` and `react-dom` versions don’t match ([#&#8203;29236](https://github.com/facebook/react/pull/29236) by [@&#8203;acdlite](https://github.com/acdlite))
-   Ensure `srcset` and `src` are assigned last on `<img>` instances ([#&#8203;30340](https://github.com/facebook/react/pull/30340) by [@&#8203;gnoff](https://github.com/gnoff))
-   Javascript URLs are replaced with functions that throw errors ([#&#8203;26507](https://github.com/facebook/react/pull/26507), [#&#8203;29808](https://github.com/facebook/react/pull/29808) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage) and [@&#8203;kassens](https://github.com/kassens))
-   Treat toggle and beforetoggle as discrete events ([#&#8203;29176](https://github.com/facebook/react/pull/29176) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Filter out empty `src` and `href` attributes (unless for `<a href=”” />`) ([#&#8203;18513](https://github.com/facebook/react/pull/18513), [#&#8203;28124](https://github.com/facebook/react/pull/28124) by [@&#8203;bvaughn](https://github.com/bvaughn) and [@&#8203;eps1lon](https://github.com/eps1lon))
-   Fix unitless `scale` style property ([#&#8203;25601](https://github.com/facebook/react/pull/25601) by [@&#8203;JonnyBurger](https://github.com/JonnyBurger))
-   Fix `onChange` error message for controlled `<select>` ([#&#8203;27740](https://github.com/facebook/react/pull/27740) by [@&#8203;Biki-das](https://github.com/Biki-das))
-   Fix focus restore in child windows after element reorder ([#&#8203;30951](https://github.com/facebook/react/pull/30951) by [@&#8203;ling1726](https://github.com/ling1726))
-   Remove `render`, `hydrate`, `findDOMNode`, `unmountComponentAtNode`, `unstable_createEventHandle`, `unstable_renderSubtreeIntoContainer`, and `unstable_runWithPriority`. Move `createRoot` and `hydrateRoot` to `react-dom/client`. ([#&#8203;28271](https://github.com/facebook/react/pull/28271) by [@&#8203;gnoff](https://github.com/gnoff))
-   Remove `test-utils` ([#&#8203;28541](https://github.com/facebook/react/pull/28541) by [@&#8203;eps1lon](https://github.com/eps1lon))
-   Remove `unstable_flushControlled` ([#&#8203;26397](https://github.com/facebook/react/pull/26397) by [@&#8203;kassens](https://github.com/kassens))
-   Remove legacy mode ([#&#8203;28468](https://github.com/facebook/react/pull/28468) by [@&#8203;gnoff](https://github.com/gnoff))
-   Remove `renderToStaticNodeStream()` ([#&#8203;28873](https://github.com/facebook/react/pull/28873) by [@&#8203;gnoff](https://github.com/gnoff))
-   Remove `unstable_renderSubtreeIntoContainer` ([#&#8203;29771](https://github.com/facebook/react/pull/29771) by [@&#8203;kassens](https://github.com/kassens))

##### React DOM Server

-   Stable release of React Server Components ([Many, many PRs](https://github.com/facebook/react/pulls?q=is%3Apr+is%3Aclosed+%5BFlight%5D+in%3Atitle+created%3A%3C2024-12-01+) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage), [@&#8203;acdlite](https://github.com/acdlite), [@&#8203;gnoff](https://github.com/gnoff), [@&#8203;sammy-SC](https://github.com/sammy-SC), [@&#8203;gaearon](https://github.com/gaearon), [@&#8203;sophiebits](https://github.com/sophiebits), [@&#8203;unstubbable](https://github.com/unstubbable), [@&#8203;lubieowoce](https://github.com/lubieowoce))
-   Support Server Actions ([#&#8203;26124](https://github.com/facebook/react/pull/26124), [#&#8203;26632](https://github.com/facebook/react/pull/26632), [#&#8203;27459](https://github.com/facebook/react/pull/27459) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage) and [@&#8203;acdlite](https://github.com/acdlite))
-   Changes to SSR
    -   Add external runtime which bootstraps hydration on the client for binary transparency ([#&#8203;25437](https://github.com/facebook/react/pull/25437), [#&#8203;26169](https://github.com/facebook/react/pull/26169), [#&#8203;25499](https://github.com/facebook/react/pull/25499) by [@&#8203;MofeiZ](https://github.com/mofeiZ) and [@&#8203;acdlite](https://github.com/acdlite))
    -   Support subresource integrity for `bootstrapScripts` and `bootstrapModules` ([#&#8203;25104](https://github.com/facebook/react/pull/25104) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Fix null bytes written at text chunk boundaries ([#&#8203;26228](https://github.com/facebook/react/pull/26228) by [@&#8203;sophiebits](https://github.com/sophiebits))
    -   Fix logic around attribute serialization ([#&#8203;26526](https://github.com/facebook/react/pull/26526) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Fix precomputed chunk cleared on Node 18 ([#&#8203;25645](https://github.com/facebook/react/pull/25645) by [@&#8203;feedthejim](https://github.com/feedthejim))
    -   Optimize end tag chunks ([#&#8203;27522](https://github.com/facebook/react/pull/27522) by [@&#8203;yujunjung](https://github.com/yujunjung))
    -   Gracefully handle suspending in DOM configs ([#&#8203;26768](https://github.com/facebook/react/pull/26768) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Check for nullish values on ReactCustomFormAction ([#&#8203;26770](https://github.com/facebook/react/pull/26770) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Preload `bootstrapModules`, `bootstrapScripts`, and update priority queue ([#&#8203;26754](https://github.com/facebook/react/pull/26754), [#&#8203;26753](https://github.com/facebook/react/pull/26753), [#&#8203;27190](https://github.com/facebook/react/pull/27190), [#&#8203;27189](https://github.com/facebook/react/pull/27189) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Client render the nearest child or parent suspense boundary if replay errors or is aborted ([#&#8203;27386](https://github.com/facebook/react/pull/27386) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Don't bail out of flushing if we still have pending root tasks ([#&#8203;27385](https://github.com/facebook/react/pull/27385) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Ensure Resumable State is Serializable ([#&#8203;27388](https://github.com/facebook/react/pull/27388) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Remove extra render pass when reverting to client render ([#&#8203;26445](https://github.com/facebook/react/pull/26445) by [@&#8203;acdlite](https://github.com/acdlite))
    -   Fix unwinding context during selective hydration ([#&#8203;25876](https://github.com/facebook/react/pull/25876) by [@&#8203;tyao1](https://github.com/tyao1))
    -   Stop flowing and then abort if a stream is cancelled ([#&#8203;27405](https://github.com/facebook/react/pull/27405) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Pass cancellation reason to abort ([#&#8203;27536](https://github.com/facebook/react/pull/27536) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Add `onHeaders` entrypoint option ([#&#8203;27641](https://github.com/facebook/react/pull/27641), [#&#8203;27712](https://github.com/facebook/react/pull/27712) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Escape `<style>` and `<script>` textContent to enable rendering inner content without dangerouslySetInnerHTML ([#&#8203;28870](https://github.com/facebook/react/pull/28870), [#&#8203;28871](https://github.com/facebook/react/pull/28871) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Fallback to client replaying actions for Blob serialization ([#&#8203;28987](https://github.com/facebook/react/pull/28987) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Render Suspense fallback if boundary contains new stylesheet during sync update ([#&#8203;28965](https://github.com/facebook/react/pull/28965) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Fix header length tracking ([#&#8203;30327](https://github.com/facebook/react/issues/30327) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Use `srcset` to trigger load event on mount ([#&#8203;30351](https://github.com/facebook/react/issues/30351) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Don't perform work when closing stream ([#&#8203;30497](https://github.com/facebook/react/issues/30497) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Allow aborting during render ([#&#8203;30488](https://github.com/facebook/react/issues/30488), [#&#8203;30730](https://github.com/facebook/react/pull/30730) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Start initial work immediately ([#&#8203;31079](https://github.com/facebook/react/issues/31079) by [@&#8203;gnoff](https://github.com/gnoff))
    -   A transition flowing into a dehydrated boundary no longer suspends when showing fallback ([#&#8203;27230](https://github.com/facebook/react/pull/27230) by [@&#8203;acdlite](https://github.com/acdlite))
    -   Fix selective hydration triggers false update loop error ([#&#8203;27439](https://github.com/facebook/react/pull/27439) by [@&#8203;acdlite](https://github.com/acdlite))
    -   Warn for Child Iterator of all types but allow Generator Components ([#&#8203;28853](https://github.com/facebook/react/pull/28853) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Include regular stack trace in serialized errors ([#&#8203;28684](https://github.com/facebook/react/pull/28684), [#&#8203;28738](https://github.com/facebook/react/pull/28738) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Aborting early no longer infinitely suspends ([#&#8203;24751](https://github.com/facebook/react/pull/24751) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
    -   Fix hydration warning suppression in text comparisons ([#&#8203;24784](https://github.com/facebook/react/pull/24784) by [@&#8203;gnoff](https://github.com/gnoff))
    -   Changes to error handling in SSR
        -   Add diffs to hydration warnings ([#&#8203;28502](https://github.com/facebook/react/pull/28502), [#&#8203;28512](https://github.com/facebook/react/pull/28512) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Make Error creation lazy ([#&#8203;24728](https://github.com/facebook/react/pull/24728) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Remove recoverable error when a sync update flows into a dehydrated boundary ([#&#8203;25692](https://github.com/facebook/react/pull/25692) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Don't "fix up" mismatched text content with suppressedHydrationWarning ([#&#8203;26391](https://github.com/facebook/react/pull/26391) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Fix component stacks in errors ([#&#8203;27456](https://github.com/facebook/react/pull/27456) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Add component stacks to `onError` ([#&#8203;27761](https://github.com/facebook/react/pull/27761), [#&#8203;27850](https://github.com/facebook/react/pull/27850) by [@&#8203;gnoff](https://github.com/gnoff) and [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
        -   Throw hydration mismatch errors once ([#&#8203;28502](https://github.com/facebook/react/pull/28502) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Add Bun streaming server renderer ([#&#8203;25597](https://github.com/facebook/react/pull/25597) by [@&#8203;colinhacks](https://github.com/colinhacks))
-   Add nonce support to bootstrap scripts ([#&#8203;26738](https://github.com/facebook/react/pull/26738) by [@&#8203;danieltott](https://github.com/danieltott))
-   Add `crossorigin` support to bootstrap scripts ([#&#8203;26844](https://github.com/facebook/react/pull/26844) by [@&#8203;HenriqueLimas](https://github.com/HenriqueLimas))
-   Support `nonce` and `fetchpriority` in preload links ([#&#8203;26826](https://github.com/facebook/react/pull/26826) by [@&#8203;liuyenwei](https://github.com/liuyenwei))
-   Add `referrerPolicy` to `ReactDOM.preload()` ([#&#8203;27096](https://github.com/facebook/react/pull/27096) by [@&#8203;styfle](https://github.com/styfle))
-   Add server condition for `react/jsx-dev-runtime` ([#&#8203;28921](https://github.com/facebook/react/pull/28921) by [@&#8203;himself65](https://github.com/himself65))
-   Export version ([#&#8203;29596](https://github.com/facebook/react/pull/29596) by [@&#8203;unstubbable](https://github.com/unstubbable))
-   Rename the secret export of Client and Server internals ([#&#8203;28786](https://github.com/facebook/react/pull/28786), [#&#8203;28789](https://github.com/facebook/react/pull/28789) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage))
-   Remove layout effect warning on server ([#&#8203;26395](https://github.com/facebook/react/pull/26395) by [@&#8203;rickhanlonii](https://github.com/rickhanlonii))
-   Remove `errorInfo.digest` from `onRecoverableError` ([#&#8203;28222](https://github.com/facebook/react/pull/28222) by [@&#8203;gnoff](https://github.com/gnoff))

##### ReactTestRenderer

-   Add deprecation error to `react-test-renderer` on web ([#&#8203;27903](https://github.com/facebook/react/pull/27903), [#&#8203;28904](https://github.com/facebook/react/pull/28904) by [@&#8203;jackpope](https://github.com/jackpope) and [@&#8203;acdlite](https://github.com/acdlite))
-   Render with ConcurrentRoot on web ([#&#8203;28498](https://github.com/facebook/react/pull/28498) by [@&#8203;jackpope](https://github.com/jackpope))
-   Remove `react-test-renderer/shallow` export ([#&#8203;25475](https://github.com/facebook/react/pull/25475), [#&#8203;28497](https://github.com/facebook/react/pull/28497) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage) and [@&#8203;jackpope](https://github.com/jackpope))

##### React Reconciler

-   Enable suspending commits without blocking render ([#&#8203;26398](https://github.com/facebook/react/pull/26398), [#&#8203;26427](https://github.com/facebook/react/pull/26427) by [@&#8203;acdlite](https://github.com/acdlite))
-   Remove `prepareUpdate` ([#&#8203;26583](https://github.com/facebook/react/pull/26583), [#&#8203;27409](http://github.com/facebook/react/pull/27409) by [@&#8203;sebmarkbage](https://github.com/sebmarkbage) and [@&#8203;sophiebits](https://github.com/sophiebits))

##### React-Is

-   Enable tree shaking ([#&#8203;27701](https://github.com/facebook/react/pull/27701) by [@&#8203;markerikson](https://github.com/markerikson))
-   Remove `isConcurrentMode` and `isAsyncMode` methods ([#&#8203;28224](https://github.com/facebook/react/pull/28224) by [@&#8203;gaearon](https://github.com/gaearon))

##### useSyncExternalStore

-   Remove React internals access ([#&#8203;29868](https://github.com/facebook/react/pull/29868) by [@&#8203;phryneas](https://github.com/phryneas))
-   Fix stale selectors keeping previous store references ([#&#8203;25969](https://github.com/facebook/react/pull/25968) by [@&#8203;jellevoost](https://github.com/jellevoost))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45OS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTEzLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.tristess.app/alexandresoro/ouca-web/pulls/6
Reviewed-by: Alexandre Soro <[email protected]>
Co-authored-by: renovate <[email protected]>
Co-committed-by: renovate <[email protected]>
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.

5 participants