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

[Flight][Fizz][Fiber] Chain HostDispatcher implementations #28488

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Mar 4, 2024

The idea here is that host dispatchers are not bound to renders so we need to be able to dispatch to them at any time. This updates the implementation to chain these dispatchers so that each renderer can respond to the dispatch. Semantically we don't always want every renderer to do this for instance if Fizz handles a float method we don't want Fiber to as well so each dispatcher implementation can decide if it makes sense to forward the call or not. For float methods server disaptchers will handle the call if they can resolve a Request otherwise they will forward. For client dispatchers they will handle the call and always forward. The choice needs to be made for each dispatcher method and may have implications on correct renderer import order. For now we just live with the restriction that if you want to use server and client together (such as renderToString in the browser) you need to import the server renderer after the client renderer.

@gnoff gnoff requested a review from sebmarkbage March 4, 2024 19:20
@gnoff gnoff requested a review from acdlite March 4, 2024 19:20
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Mar 4, 2024
@react-sizebot
Copy link

react-sizebot commented Mar 4, 2024

Comparing: 1c02b9d...155bae4

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.15% 176.93 kB 177.19 kB +0.16% 55.14 kB 55.23 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.15% 177.46 kB 177.72 kB +0.17% 55.45 kB 55.55 kB
facebook-www/ReactDOM-prod.classic.js +0.11% 594.04 kB 594.67 kB +0.09% 104.94 kB 105.04 kB
facebook-www/ReactDOM-prod.modern.js +0.10% 577.32 kB 577.93 kB +0.14% 101.96 kB 102.10 kB
oss-experimental/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable-semver/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable-semver/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.08% 3.53 kB 3.64 kB +2.51% 1.24 kB 1.27 kB
oss-stable/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.06% 3.56 kB 3.67 kB +2.46% 1.26 kB 1.29 kB
oss-experimental/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.06% 3.57 kB 3.68 kB +2.54% 1.26 kB 1.29 kB
oss-stable-semver/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.86% 3.68 kB 3.78 kB +1.72% 1.34 kB 1.36 kB
oss-stable/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.84% 3.70 kB 3.81 kB +1.69% 1.36 kB 1.38 kB
oss-experimental/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.83% 3.71 kB 3.81 kB +1.62% 1.36 kB 1.38 kB
oss-experimental/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-stable-semver/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-stable/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
test_utils/ReactAllWarnings.js Deleted 66.60 kB 0.00 kB Deleted 16.28 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable-semver/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable/react-dom/cjs/react-dom.react-server.production.min.js +4.06% 2.58 kB 2.69 kB +4.21% 0.83 kB 0.87 kB
oss-stable-semver/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.08% 3.53 kB 3.64 kB +2.51% 1.24 kB 1.27 kB
oss-stable/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.06% 3.56 kB 3.67 kB +2.46% 1.26 kB 1.29 kB
oss-experimental/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +3.06% 3.57 kB 3.68 kB +2.54% 1.26 kB 1.29 kB
oss-stable-semver/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.86% 3.68 kB 3.78 kB +1.72% 1.34 kB 1.36 kB
oss-stable/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.84% 3.70 kB 3.81 kB +1.69% 1.36 kB 1.38 kB
oss-experimental/react-dom/umd/react-dom-server-rendering-stub.production.min.js +2.83% 3.71 kB 3.81 kB +1.62% 1.36 kB 1.38 kB
oss-experimental/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-stable-semver/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-stable/react-dom/cjs/react-dom.react-server.production.js +2.14% 6.26 kB 6.39 kB +4.30% 1.23 kB 1.29 kB
oss-stable-semver/react-dom/cjs/react-dom-server-rendering-stub.production.js +1.48% 9.04 kB 9.17 kB +2.32% 2.24 kB 2.29 kB
oss-stable/react-dom/cjs/react-dom-server-rendering-stub.production.js +1.48% 9.06 kB 9.20 kB +2.29% 2.27 kB 2.32 kB
oss-experimental/react-dom/cjs/react-dom-server-rendering-stub.production.js +1.48% 9.07 kB 9.20 kB +2.29% 2.27 kB 2.32 kB
oss-experimental/react-dom/cjs/react-dom.react-server.development.js +0.99% 14.59 kB 14.74 kB +1.73% 3.06 kB 3.11 kB
oss-stable-semver/react-dom/cjs/react-dom.react-server.development.js +0.99% 14.59 kB 14.74 kB +1.73% 3.06 kB 3.11 kB
oss-stable/react-dom/cjs/react-dom.react-server.development.js +0.99% 14.59 kB 14.74 kB +1.73% 3.06 kB 3.11 kB
oss-stable-semver/react-dom/umd/react-dom-server-rendering-stub.development.js +0.81% 18.71 kB 18.86 kB +1.30% 4.24 kB 4.29 kB
oss-stable/react-dom/umd/react-dom-server-rendering-stub.development.js +0.81% 18.74 kB 18.89 kB +1.29% 4.26 kB 4.32 kB
oss-experimental/react-dom/umd/react-dom-server-rendering-stub.development.js +0.81% 18.74 kB 18.89 kB +1.27% 4.26 kB 4.32 kB
oss-stable-semver/react-dom/cjs/react-dom-server-rendering-stub.development.js +0.81% 17.80 kB 17.95 kB +1.39% 4.11 kB 4.17 kB
oss-stable/react-dom/cjs/react-dom-server-rendering-stub.development.js +0.81% 17.83 kB 17.97 kB +1.38% 4.14 kB 4.20 kB
oss-experimental/react-dom/cjs/react-dom-server-rendering-stub.development.js +0.81% 17.84 kB 17.98 kB +1.38% 4.14 kB 4.20 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.min.js +0.78% 25.42 kB 25.62 kB +0.57% 8.89 kB 8.94 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.min.js +0.78% 25.42 kB 25.62 kB +0.57% 8.89 kB 8.94 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +0.76% 26.76 kB 26.96 kB +0.46% 9.17 kB 9.21 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +0.76% 26.76 kB 26.96 kB +0.46% 9.17 kB 9.21 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.74% 27.27 kB 27.47 kB +0.48% 9.30 kB 9.35 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.74% 27.27 kB 27.47 kB +0.48% 9.30 kB 9.35 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +0.74% 26.65 kB 26.85 kB +0.56% 9.08 kB 9.13 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +0.74% 26.65 kB 26.85 kB +0.56% 9.08 kB 9.13 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +0.73% 27.17 kB 27.36 kB +0.54% 9.24 kB 9.29 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +0.73% 27.17 kB 27.36 kB +0.54% 9.24 kB 9.29 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.73% 27.17 kB 27.37 kB +0.56% 9.21 kB 9.26 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.73% 27.17 kB 27.37 kB +0.56% 9.21 kB 9.26 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +0.72% 27.57 kB 27.77 kB +0.55% 9.33 kB 9.38 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +0.72% 27.57 kB 27.77 kB +0.55% 9.33 kB 9.38 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.min.js +0.71% 27.93 kB 28.13 kB +0.50% 9.55 kB 9.60 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +0.71% 27.96 kB 28.16 kB +0.63% 9.53 kB 9.59 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +0.71% 27.96 kB 28.16 kB +0.63% 9.53 kB 9.59 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +0.70% 29.32 kB 29.52 kB +0.37% 9.87 kB 9.90 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +0.70% 28.46 kB 28.66 kB +0.62% 9.68 kB 9.74 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +0.70% 28.46 kB 28.66 kB +0.62% 9.68 kB 9.74 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +0.69% 28.53 kB 28.73 kB +0.63% 9.67 kB 9.73 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +0.69% 28.53 kB 28.73 kB +0.63% 9.67 kB 9.73 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.68% 29.83 kB 30.04 kB +0.48% 10.00 kB 10.05 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +0.68% 29.04 kB 29.24 kB +0.63% 9.83 kB 9.89 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +0.68% 29.04 kB 29.24 kB +0.63% 9.83 kB 9.89 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +0.68% 29.21 kB 29.41 kB +0.57% 9.76 kB 9.81 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +0.67% 29.75 kB 29.95 kB +0.55% 9.92 kB 9.98 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.67% 29.73 kB 29.93 kB +0.56% 9.89 kB 9.94 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +0.66% 30.15 kB 30.35 kB +0.56% 10.02 kB 10.08 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +0.65% 30.47 kB 30.67 kB +0.52% 10.20 kB 10.25 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +0.64% 30.96 kB 31.16 kB +0.54% 10.35 kB 10.41 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +0.64% 31.04 kB 31.24 kB +0.55% 10.35 kB 10.40 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +0.63% 31.55 kB 31.75 kB +0.53% 10.51 kB 10.56 kB
facebook-www/ReactFlightDOMServer-prod.modern.js +0.61% 39.15 kB 39.39 kB +0.62% 8.89 kB 8.95 kB
facebook-www/ReactFlightDOMServer-dev.modern.js +0.49% 100.53 kB 101.02 kB +0.25% 20.97 kB 21.02 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js +0.47% 92.30 kB 92.73 kB +0.23% 21.91 kB 21.96 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js +0.47% 92.30 kB 92.73 kB +0.23% 21.91 kB 21.96 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js +0.46% 94.97 kB 95.40 kB +0.24% 22.89 kB 22.95 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js +0.46% 94.97 kB 95.40 kB +0.24% 22.89 kB 22.95 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js +0.46% 95.81 kB 96.25 kB +0.22% 23.12 kB 23.18 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js +0.46% 95.81 kB 96.25 kB +0.22% 23.12 kB 23.18 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js +0.45% 97.22 kB 97.65 kB +0.23% 23.49 kB 23.55 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js +0.45% 97.22 kB 97.65 kB +0.23% 23.49 kB 23.55 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js +0.45% 97.54 kB 97.97 kB +0.21% 23.56 kB 23.61 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js +0.45% 97.54 kB 97.97 kB +0.21% 23.56 kB 23.61 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +0.44% 98.44 kB 98.88 kB +0.25% 23.31 kB 23.37 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +0.44% 98.44 kB 98.88 kB +0.25% 23.31 kB 23.37 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js +0.43% 100.52 kB 100.95 kB +0.24% 23.80 kB 23.86 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js +0.43% 100.52 kB 100.95 kB +0.24% 23.80 kB 23.86 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js +0.43% 101.10 kB 101.54 kB +0.23% 24.14 kB 24.20 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js +0.43% 101.10 kB 101.54 kB +0.23% 24.14 kB 24.20 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js +0.43% 102.45 kB 102.89 kB +0.23% 24.06 kB 24.11 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js +0.42% 103.18 kB 103.61 kB +0.24% 24.69 kB 24.75 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js +0.42% 103.18 kB 103.61 kB +0.24% 24.69 kB 24.75 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js +0.41% 105.58 kB 106.01 kB +0.21% 25.23 kB 25.28 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js +0.41% 106.16 kB 106.60 kB +0.21% 24.94 kB 24.99 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js +0.41% 106.16 kB 106.60 kB +0.21% 24.94 kB 24.99 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js +0.41% 106.42 kB 106.86 kB +0.22% 25.47 kB 25.53 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js +0.40% 107.83 kB 108.26 kB +0.21% 25.83 kB 25.89 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js +0.40% 108.15 kB 108.58 kB +0.22% 25.91 kB 25.97 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +0.40% 108.60 kB 109.03 kB +0.22% 25.46 kB 25.52 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +0.40% 109.05 kB 109.48 kB +0.19% 25.92 kB 25.97 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +0.40% 109.05 kB 109.48 kB +0.19% 25.92 kB 25.97 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +0.40% 115.12 kB 115.58 kB +0.21% 26.23 kB 26.28 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +0.40% 115.12 kB 115.58 kB +0.21% 26.23 kB 26.28 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +0.40% 109.94 kB 110.37 kB +0.22% 26.15 kB 26.21 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +0.40% 109.94 kB 110.37 kB +0.22% 26.15 kB 26.21 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js +0.39% 110.68 kB 111.11 kB +0.21% 25.96 kB 26.01 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js +0.39% 111.26 kB 111.70 kB +0.21% 26.29 kB 26.35 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +0.39% 111.49 kB 111.93 kB +0.20% 26.59 kB 26.64 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +0.39% 111.49 kB 111.93 kB +0.20% 26.59 kB 26.64 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +0.39% 117.69 kB 118.15 kB +0.21% 26.91 kB 26.96 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +0.39% 117.69 kB 118.15 kB +0.21% 26.91 kB 26.96 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.39% 111.87 kB 112.30 kB +0.21% 26.66 kB 26.71 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.39% 111.87 kB 112.30 kB +0.21% 26.66 kB 26.71 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +0.39% 112.32 kB 112.76 kB +0.20% 26.31 kB 26.37 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +0.39% 112.32 kB 112.76 kB +0.20% 26.31 kB 26.37 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js +0.38% 113.33 kB 113.77 kB +0.20% 26.85 kB 26.91 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +0.38% 114.61 kB 115.05 kB +0.19% 26.87 kB 26.93 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +0.38% 114.61 kB 115.05 kB +0.19% 26.87 kB 26.93 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +0.38% 114.96 kB 115.40 kB +0.19% 27.15 kB 27.20 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +0.38% 114.96 kB 115.40 kB +0.19% 27.15 kB 27.20 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.37% 117.24 kB 117.68 kB +0.18% 27.76 kB 27.81 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.37% 117.24 kB 117.68 kB +0.18% 27.76 kB 27.81 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js +0.34% 127.75 kB 128.18 kB +0.16% 29.14 kB 29.19 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +0.33% 137.51 kB 137.97 kB +0.15% 30.48 kB 30.53 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +0.33% 130.43 kB 130.86 kB +0.20% 30.01 kB 30.07 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +0.33% 131.99 kB 132.43 kB +0.14% 30.56 kB 30.60 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +0.33% 140.08 kB 140.54 kB +0.15% 31.18 kB 31.23 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +0.33% 132.87 kB 133.31 kB +0.20% 30.72 kB 30.78 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +0.33% 133.90 kB 134.34 kB +0.18% 30.59 kB 30.64 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.33% 133.92 kB 134.36 kB +0.14% 31.07 kB 31.11 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +0.32% 136.19 kB 136.63 kB +0.18% 31.17 kB 31.23 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +0.32% 136.54 kB 136.98 kB +0.18% 31.39 kB 31.45 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.31% 138.83 kB 139.26 kB +0.17% 32.02 kB 32.08 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0.26% 79.73 kB 79.94 kB +0.22% 24.28 kB 24.33 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0.26% 79.76 kB 79.96 kB +0.23% 24.30 kB 24.35 kB
oss-stable-semver/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0.26% 79.81 kB 80.02 kB +0.21% 24.67 kB 24.72 kB
oss-stable/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0.26% 79.84 kB 80.04 kB +0.21% 24.70 kB 24.75 kB
oss-stable-semver/react-dom/umd/react-dom-server.browser.production.min.js +0.26% 80.77 kB 80.98 kB +0.28% 25.42 kB 25.49 kB
oss-stable/react-dom/umd/react-dom-server.browser.production.min.js +0.25% 80.80 kB 81.00 kB +0.28% 25.44 kB 25.51 kB
oss-stable-semver/react-dom/cjs/react-dom-server.browser.production.min.js +0.25% 80.70 kB 80.91 kB +0.30% 25.12 kB 25.19 kB
oss-stable/react-dom/cjs/react-dom-server.browser.production.min.js +0.25% 80.73 kB 80.93 kB +0.30% 25.14 kB 25.22 kB
oss-stable-semver/react-dom/cjs/react-dom-server.bun.production.min.js +0.25% 82.26 kB 82.47 kB +0.22% 24.95 kB 25.01 kB
oss-stable/react-dom/cjs/react-dom-server.bun.production.min.js +0.25% 82.29 kB 82.49 kB +0.21% 24.98 kB 25.03 kB
oss-experimental/react-dom/umd/react-dom-server-legacy.browser.production.min.js +0.25% 83.57 kB 83.78 kB +0.21% 25.75 kB 25.80 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0.25% 83.50 kB 83.70 kB +0.25% 25.33 kB 25.39 kB
oss-stable-semver/react-dom/cjs/react-dom-server.node.production.min.js +0.24% 83.84 kB 84.05 kB +0.22% 25.91 kB 25.97 kB
oss-stable/react-dom/cjs/react-dom-server.node.production.min.js +0.24% 83.87 kB 84.07 kB +0.23% 25.94 kB 26.00 kB
oss-stable-semver/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0.24% 85.27 kB 85.47 kB +0.19% 26.19 kB 26.24 kB
oss-stable/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0.24% 85.29 kB 85.50 kB +0.19% 26.21 kB 26.26 kB
oss-stable-semver/react-dom/cjs/react-dom-server.edge.production.min.js +0.24% 85.72 kB 85.92 kB +0.26% 26.76 kB 26.83 kB
oss-stable/react-dom/cjs/react-dom-server.edge.production.min.js +0.24% 85.74 kB 85.95 kB +0.26% 26.79 kB 26.86 kB
oss-experimental/react-dom/cjs/react-dom-server.bun.production.min.js +0.24% 86.46 kB 86.66 kB +0.23% 26.15 kB 26.21 kB
oss-experimental/react-dom/cjs/react-dom-server-legacy.node.production.min.js +0.23% 89.47 kB 89.68 kB +0.21% 27.30 kB 27.35 kB
oss-experimental/react-dom/umd/react-dom-server.browser.production.min.js +0.22% 88.04 kB 88.23 kB +0.15% 27.26 kB 27.31 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.production.min.js +0.22% 87.99 kB 88.18 kB +0.21% 26.88 kB 26.94 kB
oss-experimental/react-dom/cjs/react-dom-server.node.production.min.js +0.21% 91.65 kB 91.84 kB +0.21% 27.80 kB 27.85 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.production.min.js +0.20% 93.42 kB 93.61 kB +0.25% 28.62 kB 28.69 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 74.14 kB 73.96 kB = 18.06 kB 18.04 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js = 74.11 kB 73.93 kB = 18.02 kB 18.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 73.27 kB 73.09 kB = 17.85 kB 17.84 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js = 73.25 kB 73.06 kB = 17.81 kB 17.80 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 71.85 kB 71.66 kB = 17.45 kB 17.44 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js = 71.81 kB 71.63 kB = 17.43 kB 17.42 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js = 70.03 kB 69.85 kB = 16.86 kB 16.85 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 69.05 kB 68.87 kB = 17.05 kB 17.03 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js = 69.05 kB 68.87 kB = 17.05 kB 17.03 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js = 69.03 kB 68.84 kB = 17.01 kB 16.99 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js = 69.03 kB 68.84 kB = 17.01 kB 16.99 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 70.11 kB 69.92 kB = 16.33 kB 16.31 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 68.19 kB 68.00 kB = 16.85 kB 16.83 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js = 68.19 kB 68.00 kB = 16.85 kB 16.83 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js = 68.16 kB 67.98 kB = 16.81 kB 16.79 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js = 68.16 kB 67.98 kB = 16.81 kB 16.79 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js = 69.57 kB 69.38 kB = 16.15 kB 16.13 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 66.76 kB 66.58 kB = 16.45 kB 16.44 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js = 66.76 kB 66.58 kB = 16.45 kB 16.44 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js = 66.73 kB 66.54 kB = 16.42 kB 16.42 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js = 66.73 kB 66.54 kB = 16.42 kB 16.42 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 65.99 kB 65.80 kB = 16.06 kB 16.04 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js = 65.48 kB 65.29 kB = 15.89 kB 15.88 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js = 64.94 kB 64.76 kB = 15.86 kB 15.84 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js = 64.94 kB 64.76 kB = 15.86 kB 15.84 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 64.71 kB 64.52 kB = 15.30 kB 15.29 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js = 64.71 kB 64.52 kB = 15.30 kB 15.29 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js = 64.17 kB 63.98 kB = 15.12 kB 15.11 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js = 64.17 kB 63.98 kB = 15.12 kB 15.11 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.development.js = 62.23 kB 62.04 kB = 14.91 kB 14.90 kB
oss-experimental/react-server-dom-esm/esm/react-server-dom-esm-client.browser.development.js = 62.02 kB 61.84 kB = 14.85 kB 14.83 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 60.90 kB 60.71 kB = 15.06 kB 15.04 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js = 60.90 kB 60.71 kB = 15.06 kB 15.04 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js = 60.39 kB 60.20 kB = 14.89 kB 14.87 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js = 60.39 kB 60.20 kB = 14.89 kB 14.87 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.development.js = 57.14 kB 56.95 kB = 13.91 kB 13.89 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.development.js = 57.14 kB 56.95 kB = 13.91 kB 13.89 kB
oss-stable-semver/react-server-dom-esm/esm/react-server-dom-esm-client.browser.development.js = 56.94 kB 56.75 kB = 13.84 kB 13.82 kB
oss-stable/react-server-dom-esm/esm/react-server-dom-esm-client.browser.development.js = 56.94 kB 56.75 kB = 13.84 kB 13.82 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js = 56.80 kB 56.62 kB = 13.75 kB 13.75 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js = 56.78 kB 56.59 kB = 13.71 kB 13.70 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js = 55.90 kB 55.71 kB = 13.55 kB 13.55 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js = 55.87 kB 55.68 kB = 13.51 kB 13.50 kB
facebook-www/ReactFlightDOMClient-prod.modern.js = 19.09 kB 19.03 kB = 4.54 kB 4.54 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js = 54.46 kB 54.28 kB = 13.17 kB 13.17 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js = 54.43 kB 54.25 kB = 13.15 kB 13.14 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.js = 52.64 kB 52.46 kB = 12.60 kB 12.59 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js = 51.71 kB 51.53 kB = 12.74 kB 12.73 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js = 51.71 kB 51.53 kB = 12.74 kB 12.73 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js = 51.69 kB 51.50 kB = 12.70 kB 12.69 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js = 51.69 kB 51.50 kB = 12.70 kB 12.69 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js = 50.81 kB 50.62 kB = 12.54 kB 12.53 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js = 50.81 kB 50.62 kB = 12.54 kB 12.53 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js = 50.78 kB 50.59 kB = 12.50 kB 12.49 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js = 50.78 kB 50.59 kB = 12.50 kB 12.49 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js = 49.37 kB 49.19 kB = 12.16 kB 12.15 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js = 49.37 kB 49.19 kB = 12.16 kB 12.15 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js = 49.34 kB 49.16 kB = 12.14 kB 12.13 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js = 49.34 kB 49.16 kB = 12.14 kB 12.13 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js = 49.23 kB 49.05 kB = 11.89 kB 11.88 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js = 48.72 kB 48.53 kB = 11.73 kB 11.72 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.js = 47.55 kB 47.37 kB = 11.59 kB 11.58 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.js = 47.55 kB 47.37 kB = 11.59 kB 11.58 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.js = 45.46 kB 45.27 kB = 10.79 kB 10.78 kB
oss-experimental/react-server-dom-esm/esm/react-server-dom-esm-client.browser.production.min.js = 45.34 kB 45.16 kB = 10.76 kB 10.75 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js = 44.14 kB 43.96 kB = 10.90 kB 10.89 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js = 44.14 kB 43.96 kB = 10.90 kB 10.89 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js = 43.63 kB 43.44 kB = 10.74 kB 10.73 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js = 43.63 kB 43.44 kB = 10.74 kB 10.73 kB
facebook-www/ReactFlightDOMClient-dev.modern.js = 40.15 kB 39.98 kB = 9.28 kB 9.28 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.js = 40.37 kB 40.18 kB = 9.79 kB 9.78 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.js = 40.37 kB 40.18 kB = 9.79 kB 9.78 kB
oss-stable-semver/react-server-dom-esm/esm/react-server-dom-esm-client.browser.production.min.js = 40.25 kB 40.07 kB = 9.77 kB 9.76 kB
oss-stable/react-server-dom-esm/esm/react-server-dom-esm-client.browser.production.min.js = 40.25 kB 40.07 kB = 9.77 kB 9.76 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-server.production.js = 5.93 kB 5.90 kB = 1.67 kB 1.65 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-server.production.js = 5.93 kB 5.90 kB = 1.67 kB 1.65 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-server.production.js = 5.93 kB 5.90 kB = 1.67 kB 1.65 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-server.development.js = 6.35 kB 6.31 kB = 1.72 kB 1.71 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-server.development.js = 6.35 kB 6.31 kB = 1.72 kB 1.71 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-server.development.js = 6.35 kB 6.31 kB = 1.72 kB 1.71 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-server.production.min.js = 3.24 kB 3.20 kB = 1.19 kB 1.18 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-server.production.min.js = 3.24 kB 3.20 kB = 1.19 kB 1.18 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-server.production.min.js = 3.24 kB 3.20 kB = 1.19 kB 1.18 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.js = 2.28 kB 2.25 kB = 0.90 kB 0.88 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.js = 2.28 kB 2.25 kB = 0.90 kB 0.88 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.js = 2.28 kB 2.25 kB = 0.90 kB 0.88 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-server.development.js = 2.52 kB 2.48 kB = 0.95 kB 0.94 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-server.development.js = 2.52 kB 2.48 kB = 0.95 kB 0.94 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-server.development.js = 2.52 kB 2.48 kB = 0.95 kB 0.94 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-server.production.min.js = 1.39 kB 1.35 kB = 0.64 kB 0.63 kB
test_utils/ReactAllWarnings.js Deleted 66.60 kB 0.00 kB Deleted 16.28 kB 0.00 kB

Generated by 🚫 dangerJS against 155bae4

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.

There's a question here if the this should really be passed or not. That also affects whether it's previous.preload() or previousPreload() where as the second is a little easier to optimize since it doesn't require knowledge of if the object can be mutated or not.

…ot bound to renders so we need to be able to dispatch to them at any time. This updates the implementation to chain these dispatchers so that each renderer can respond to the dispatch. Semantically we don't always want every renderer to do this for instance if Fizz handles a float method we don't want Fiber to as well so each dispatcher implementation can decide if it makes sense to forward the call or not. For float methods server disaptchers will handle the call if they can resolve a Request otherwise they will forward. For client dispatchers they will handle the call and always forward. The choice needs to be made for each dispatcher method and may have implications on correct renderer import order. For now we just live with the restriction that if you want to use server and client together (such as renderToString in the browser) you need to import the server renderer after the client renderer.
@gnoff
Copy link
Collaborator Author

gnoff commented Mar 4, 2024

Yeah, I figure we could change it if we needed to later. or have two dispatchers one that preserves the this and one that doesn't if we're worried about the optimization of previous.preload()

@gnoff gnoff merged commit 113ab9a into facebook:main Mar 4, 2024
38 checks passed
@gnoff gnoff deleted the chain-dispatchers branch March 4, 2024 20:27
github-actions bot pushed a commit that referenced this pull request Mar 4, 2024
The idea here is that host dispatchers are not bound to renders so we
need to be able to dispatch to them at any time. This updates the
implementation to chain these dispatchers so that each renderer can
respond to the dispatch. Semantically we don't always want every
renderer to do this for instance if Fizz handles a float method we don't
want Fiber to as well so each dispatcher implementation can decide if it
makes sense to forward the call or not. For float methods server
disaptchers will handle the call if they can resolve a Request otherwise
they will forward. For client dispatchers they will handle the call and
always forward. The choice needs to be made for each dispatcher method
and may have implications on correct renderer import order. For now we
just live with the restriction that if you want to use server and client
together (such as renderToString in the browser) you need to import the
server renderer after the client renderer.

DiffTrain build for [113ab9a](113ab9a)
gnoff added a commit to gnoff/next.js that referenced this pull request Mar 25, 2024
- facebook/react#28596
- facebook/react#28625
- facebook/react#28616
- facebook/react#28491
- facebook/react#28583
- facebook/react#28427
- facebook/react#28613
- facebook/react#28599
- facebook/react#28611
- facebook/react#28610
- facebook/react#28606
- facebook/react#28598
- facebook/react#28549
- facebook/react#28557
- facebook/react#28467
- facebook/react#28591
- facebook/react#28459
- facebook/react#28590
- facebook/react#28564
- facebook/react#28582
- facebook/react#28579
- facebook/react#28578
- facebook/react#28521
- facebook/react#28550
- facebook/react#28576
- facebook/react#28577
- facebook/react#28571
- facebook/react#28572
- facebook/react#28560
- facebook/react#28569
- facebook/react#28573
- facebook/react#28546
- facebook/react#28568
- facebook/react#28562
- facebook/react#28566
- facebook/react#28565
- facebook/react#28559
- facebook/react#28508
- facebook/react#20432
- facebook/react#28555
- facebook/react#24730
- facebook/react#28472
- facebook/react#27991
- facebook/react#28514
- facebook/react#28548
- facebook/react#28526
- facebook/react#28515
- facebook/react#28533
- facebook/react#28532
- facebook/react#28531
- facebook/react#28407
- facebook/react#28522
- facebook/react#28538
- facebook/react#28509
- facebook/react#28534
- facebook/react#28527
- facebook/react#28528
- facebook/react#28519
- facebook/react#28411
- facebook/react#28520
- facebook/react#28518
- facebook/react#28493
- facebook/react#28504
- facebook/react#28499
- facebook/react#28501
- facebook/react#28496
- facebook/react#28471
- facebook/react#28351
- facebook/react#28486
- facebook/react#28490
- facebook/react#28488
- facebook/react#28468
- facebook/react#28321
- facebook/react#28477
- facebook/react#28479
- facebook/react#28480
- facebook/react#28478
- facebook/react#28464
- facebook/react#28475
- facebook/react#28456
- facebook/react#28319
- facebook/react#28345
- facebook/react#28337
- facebook/react#28335
- facebook/react#28466
- facebook/react#28462
- facebook/react#28322
- facebook/react#28444
- facebook/react#28448
- facebook/react#28449
- facebook/react#28446
- facebook/react#28447
- facebook/react#24580
- facebook/react#28514
- facebook/react#28548
- facebook/react#28526
- facebook/react#28515
- facebook/react#28533
- facebook/react#28532
- facebook/react#28531
- facebook/react#28407
- facebook/react#28522
- facebook/react#28538
- facebook/react#28509
- facebook/react#28534
- facebook/react#28527
- facebook/react#28528
- facebook/react#28519
- facebook/react#28411
- facebook/react#28520
- facebook/react#28518
- facebook/react#28493
- facebook/react#28504
- facebook/react#28499
- facebook/react#28501
- facebook/react#28496
- facebook/react#28471
- facebook/react#28351
- facebook/react#28486
- facebook/react#28490
- facebook/react#28488
- facebook/react#28468
- facebook/react#28321
- facebook/react#28477
- facebook/react#28479
- facebook/react#28480
- facebook/react#28478
- facebook/react#28464
- facebook/react#28475
- facebook/react#28456
- facebook/react#28319
- facebook/react#28345
- facebook/react#28337
- facebook/react#28335
- facebook/react#28466
- facebook/react#28462
- facebook/react#28322
- facebook/react#28444
- facebook/react#28448
- facebook/react#28449
- facebook/react#28446
- facebook/react#28447
- facebook/react#24580
gnoff added a commit to gnoff/next.js that referenced this pull request Mar 25, 2024
- facebook/react#28596
- facebook/react#28625
- facebook/react#28616
- facebook/react#28491
- facebook/react#28583
- facebook/react#28427
- facebook/react#28613
- facebook/react#28599
- facebook/react#28611
- facebook/react#28610
- facebook/react#28606
- facebook/react#28598
- facebook/react#28549
- facebook/react#28557
- facebook/react#28467
- facebook/react#28591
- facebook/react#28459
- facebook/react#28590
- facebook/react#28564
- facebook/react#28582
- facebook/react#28579
- facebook/react#28578
- facebook/react#28521
- facebook/react#28550
- facebook/react#28576
- facebook/react#28577
- facebook/react#28571
- facebook/react#28572
- facebook/react#28560
- facebook/react#28569
- facebook/react#28573
- facebook/react#28546
- facebook/react#28568
- facebook/react#28562
- facebook/react#28566
- facebook/react#28565
- facebook/react#28559
- facebook/react#28508
- facebook/react#20432
- facebook/react#28555
- facebook/react#24730
- facebook/react#28472
- facebook/react#27991
- facebook/react#28514
- facebook/react#28548
- facebook/react#28526
- facebook/react#28515
- facebook/react#28533
- facebook/react#28532
- facebook/react#28531
- facebook/react#28407
- facebook/react#28522
- facebook/react#28538
- facebook/react#28509
- facebook/react#28534
- facebook/react#28527
- facebook/react#28528
- facebook/react#28519
- facebook/react#28411
- facebook/react#28520
- facebook/react#28518
- facebook/react#28493
- facebook/react#28504
- facebook/react#28499
- facebook/react#28501
- facebook/react#28496
- facebook/react#28471
- facebook/react#28351
- facebook/react#28486
- facebook/react#28490
- facebook/react#28488
- facebook/react#28468
- facebook/react#28321
- facebook/react#28477
- facebook/react#28479
- facebook/react#28480
- facebook/react#28478
- facebook/react#28464
- facebook/react#28475
- facebook/react#28456
- facebook/react#28319
- facebook/react#28345
- facebook/react#28337
- facebook/react#28335
- facebook/react#28466
- facebook/react#28462
- facebook/react#28322
- facebook/react#28444
- facebook/react#28448
- facebook/react#28449
- facebook/react#28446
- facebook/react#28447
- facebook/react#24580
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…28488)

The idea here is that host dispatchers are not bound to renders so we
need to be able to dispatch to them at any time. This updates the
implementation to chain these dispatchers so that each renderer can
respond to the dispatch. Semantically we don't always want every
renderer to do this for instance if Fizz handles a float method we don't
want Fiber to as well so each dispatcher implementation can decide if it
makes sense to forward the call or not. For float methods server
disaptchers will handle the call if they can resolve a Request otherwise
they will forward. For client dispatchers they will handle the call and
always forward. The choice needs to be made for each dispatcher method
and may have implications on correct renderer import order. For now we
just live with the restriction that if you want to use server and client
together (such as renderToString in the browser) you need to import the
server renderer after the client renderer.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
The idea here is that host dispatchers are not bound to renders so we
need to be able to dispatch to them at any time. This updates the
implementation to chain these dispatchers so that each renderer can
respond to the dispatch. Semantically we don't always want every
renderer to do this for instance if Fizz handles a float method we don't
want Fiber to as well so each dispatcher implementation can decide if it
makes sense to forward the call or not. For float methods server
disaptchers will handle the call if they can resolve a Request otherwise
they will forward. For client dispatchers they will handle the call and
always forward. The choice needs to be made for each dispatcher method
and may have implications on correct renderer import order. For now we
just live with the restriction that if you want to use server and client
together (such as renderToString in the browser) you need to import the
server renderer after the client renderer.

DiffTrain build for commit 113ab9a.
eps1lon added a commit to vercel/next.js that referenced this pull request Apr 19, 2024
### React upstream changes

- facebook/react#28643
- facebook/react#28628
- facebook/react#28361
- facebook/react#28513
- facebook/react#28299
- facebook/react#28617
- facebook/react#28618
- facebook/react#28621
- facebook/react#28614
- facebook/react#28596
- facebook/react#28625
- facebook/react#28616
- facebook/react#28491
- facebook/react#28583
- facebook/react#28427
- facebook/react#28613
- facebook/react#28599
- facebook/react#28611
- facebook/react#28610
- facebook/react#28606
- facebook/react#28598
- facebook/react#28549
- facebook/react#28557
- facebook/react#28467
- facebook/react#28591
- facebook/react#28459
- facebook/react#28590
- facebook/react#28564
- facebook/react#28582
- facebook/react#28579
- facebook/react#28578
- facebook/react#28521
- facebook/react#28550
- facebook/react#28576
- facebook/react#28577
- facebook/react#28571
- facebook/react#28572
- facebook/react#28560
- facebook/react#28569
- facebook/react#28573
- facebook/react#28546
- facebook/react#28568
- facebook/react#28562
- facebook/react#28566
- facebook/react#28565
- facebook/react#28559
- facebook/react#28508
- facebook/react#20432
- facebook/react#28555
- facebook/react#24730
- facebook/react#28472
- facebook/react#27991
- facebook/react#28514
- facebook/react#28548
- facebook/react#28526
- facebook/react#28515
- facebook/react#28533
- facebook/react#28532
- facebook/react#28531
- facebook/react#28407
- facebook/react#28522
- facebook/react#28538
- facebook/react#28509
- facebook/react#28534
- facebook/react#28527
- facebook/react#28528
- facebook/react#28519
- facebook/react#28411
- facebook/react#28520
- facebook/react#28518
- facebook/react#28493
- facebook/react#28504
- facebook/react#28499
- facebook/react#28501
- facebook/react#28496
- facebook/react#28471
- facebook/react#28351
- facebook/react#28486
- facebook/react#28490
- facebook/react#28488
- facebook/react#28468
- facebook/react#28321
- facebook/react#28477
- facebook/react#28479
- facebook/react#28480
- facebook/react#28478
- facebook/react#28464
- facebook/react#28475
- facebook/react#28456
- facebook/react#28319
- facebook/react#28345
- facebook/react#28337
- facebook/react#28335
- facebook/react#28466
- facebook/react#28462
- facebook/react#28322
- facebook/react#28444
- facebook/react#28448
- facebook/react#28449
- facebook/react#28446
- facebook/react#28447
- facebook/react#24580
- facebook/react#28514
- facebook/react#28548
- facebook/react#28526
- facebook/react#28515
- facebook/react#28533
- facebook/react#28532
- facebook/react#28531
- facebook/react#28407
- facebook/react#28522
- facebook/react#28538
- facebook/react#28509
- facebook/react#28534
- facebook/react#28527
- facebook/react#28528
- facebook/react#28519
- facebook/react#28411
- facebook/react#28520
- facebook/react#28518
- facebook/react#28493
- facebook/react#28504
- facebook/react#28499
- facebook/react#28501
- facebook/react#28496
- facebook/react#28471
- facebook/react#28351
- facebook/react#28486
- facebook/react#28490
- facebook/react#28488
- facebook/react#28468
- facebook/react#28321
- facebook/react#28477
- facebook/react#28479
- facebook/react#28480
- facebook/react#28478
- facebook/react#28464
- facebook/react#28475
- facebook/react#28456
- facebook/react#28319
- facebook/react#28345
- facebook/react#28337
- facebook/react#28335
- facebook/react#28466
- facebook/react#28462
- facebook/react#28322
- facebook/react#28444
- facebook/react#28448
- facebook/react#28449
- facebook/react#28446
- facebook/react#28447
- facebook/react#24580
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants