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] When halting omit any reference rather than refer to a shared missing chunk #30750

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Aug 20, 2024

When aborting a prerender we should leave references unfulfilled, not share a common unfullfilled reference. functionally today this doesn't matter because we don't have resuming but the semantic is that the row was not available when the abort happened and in a resume the row should fill in. But by pointing each task to a common unfulfilled chunk we lose the ability for these references to resolves to distinct values on resume.

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 5:11pm

@react-sizebot
Copy link

react-sizebot commented Aug 20, 2024

Comparing: 2505bf9...3ca0ea6

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.js = 6.68 kB 6.68 kB = 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 500.37 kB 500.37 kB = 89.80 kB 89.80 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 507.50 kB 507.50 kB = 90.96 kB 90.96 kB
facebook-www/ReactDOM-prod.classic.js = 595.24 kB 595.24 kB = 105.55 kB 105.55 kB
facebook-www/ReactDOM-prod.modern.js = 571.54 kB 571.54 kB = 101.75 kB 101.75 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-server/cjs/react-server-flight.production.js +1.00% 63.75 kB 64.39 kB +0.56% 12.43 kB 12.50 kB
oss-experimental/react-server/cjs/react-server-flight.development.js +0.78% 105.11 kB 105.93 kB +0.35% 19.01 kB 19.08 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js +0.61% 94.95 kB 95.53 kB +0.31% 19.37 kB 19.43 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js +0.59% 98.12 kB 98.70 kB +0.36% 19.67 kB 19.74 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js +0.59% 98.44 kB 99.02 kB +0.55% 19.78 kB 19.89 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js +0.59% 98.54 kB 99.12 kB +0.56% 19.79 kB 19.90 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js +0.59% 98.57 kB 99.15 kB +0.56% 19.79 kB 19.90 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js +0.57% 100.61 kB 101.18 kB +0.30% 20.25 kB 20.31 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js +0.57% 100.63 kB 101.21 kB +0.30% 20.25 kB 20.32 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js +0.57% 101.56 kB 102.14 kB +0.62% 20.46 kB 20.58 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js +0.57% 101.60 kB 102.17 kB +0.61% 20.45 kB 20.58 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js +0.56% 147.01 kB 147.83 kB +0.26% 26.88 kB 26.96 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +0.55% 149.92 kB 150.74 kB +0.29% 27.26 kB 27.34 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +0.54% 150.54 kB 151.35 kB +0.29% 27.43 kB 27.51 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +0.54% 152.76 kB 153.58 kB +0.26% 27.66 kB 27.73 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.53% 152.91 kB 153.73 kB +0.26% 27.72 kB 27.79 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +0.53% 153.37 kB 154.19 kB +0.20% 27.89 kB 27.94 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +0.53% 153.53 kB 154.35 kB +0.20% 27.95 kB 28.00 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +0.53% 154.49 kB 155.31 kB +0.21% 28.16 kB 28.22 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.53% 154.63 kB 155.45 kB +0.21% 28.23 kB 28.29 kB
oss-experimental/react-markup/cjs/react-markup.react-server.production.js +0.21% 303.62 kB 304.25 kB +0.14% 57.14 kB 57.22 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js = 136.38 kB 135.93 kB = 25.19 kB 25.15 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js = 136.38 kB 135.93 kB = 25.19 kB 25.15 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js = 136.38 kB 135.93 kB = 25.19 kB 25.15 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js = 136.24 kB 135.78 kB = 25.12 kB 25.08 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js = 136.24 kB 135.78 kB = 25.12 kB 25.08 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js = 136.24 kB 135.78 kB = 25.12 kB 25.08 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js = 135.28 kB 134.83 kB = 24.91 kB 24.86 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js = 135.28 kB 134.83 kB = 24.91 kB 24.86 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js = 135.28 kB 134.83 kB = 24.91 kB 24.86 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js = 135.12 kB 134.67 kB = 24.84 kB 24.80 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js = 135.12 kB 134.67 kB = 24.84 kB 24.80 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js = 135.12 kB 134.67 kB = 24.84 kB 24.80 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js = 133.86 kB 133.40 kB = 24.78 kB 24.74 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js = 133.86 kB 133.40 kB = 24.78 kB 24.74 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js = 133.86 kB 133.40 kB = 24.78 kB 24.74 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js = 133.71 kB 133.25 kB = 24.71 kB 24.67 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js = 133.71 kB 133.25 kB = 24.71 kB 24.67 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js = 133.71 kB 133.25 kB = 24.71 kB 24.67 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js = 133.13 kB 132.67 kB = 24.69 kB 24.64 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js = 133.13 kB 132.67 kB = 24.69 kB 24.64 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js = 133.13 kB 132.67 kB = 24.69 kB 24.64 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js = 132.50 kB 132.05 kB = 24.49 kB 24.45 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js = 132.50 kB 132.05 kB = 24.49 kB 24.45 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js = 132.50 kB 132.05 kB = 24.49 kB 24.45 kB
oss-stable-rc/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js = 128.75 kB 128.30 kB = 23.87 kB 23.83 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js = 128.75 kB 128.30 kB = 23.87 kB 23.83 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-server.node.development.js = 128.75 kB 128.30 kB = 23.87 kB 23.83 kB
oss-stable-rc/react-server/cjs/react-server-flight.development.js = 89.29 kB 88.83 kB = 16.37 kB 16.32 kB
oss-stable-semver/react-server/cjs/react-server-flight.development.js = 89.29 kB 88.83 kB = 16.37 kB 16.32 kB
oss-stable/react-server/cjs/react-server-flight.development.js = 89.29 kB 88.83 kB = 16.37 kB 16.32 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js = 95.58 kB 95.05 kB = 19.47 kB 19.43 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js = 95.58 kB 95.05 kB = 19.47 kB 19.43 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js = 95.58 kB 95.05 kB = 19.47 kB 19.43 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js = 95.55 kB 95.02 kB = 19.48 kB 19.43 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js = 95.55 kB 95.02 kB = 19.48 kB 19.43 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js = 95.55 kB 95.02 kB = 19.48 kB 19.43 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js = 94.62 kB 94.08 kB = 19.27 kB 19.23 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js = 94.62 kB 94.08 kB = 19.27 kB 19.23 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js = 94.62 kB 94.08 kB = 19.27 kB 19.23 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js = 94.60 kB 94.07 kB = 19.27 kB 19.23 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js = 94.60 kB 94.07 kB = 19.27 kB 19.23 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js = 94.60 kB 94.07 kB = 19.27 kB 19.23 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js = 92.45 kB 91.92 kB = 18.89 kB 18.86 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js = 92.45 kB 91.92 kB = 18.89 kB 18.86 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js = 92.45 kB 91.92 kB = 18.89 kB 18.86 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js = 92.43 kB 91.90 kB = 18.90 kB 18.86 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js = 92.43 kB 91.90 kB = 18.90 kB 18.86 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js = 92.43 kB 91.90 kB = 18.90 kB 18.86 kB
oss-stable-rc/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js = 92.41 kB 91.88 kB = 18.88 kB 18.85 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js = 92.41 kB 91.88 kB = 18.88 kB 18.85 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js = 92.41 kB 91.88 kB = 18.88 kB 18.85 kB
oss-stable-rc/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js = 92.09 kB 91.56 kB = 18.79 kB 18.76 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js = 92.09 kB 91.56 kB = 18.79 kB 18.76 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js = 92.09 kB 91.56 kB = 18.79 kB 18.76 kB
oss-stable-rc/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js = 88.94 kB 88.41 kB = 18.39 kB 18.35 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js = 88.94 kB 88.41 kB = 18.39 kB 18.35 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-server.node.production.js = 88.94 kB 88.41 kB = 18.39 kB 18.35 kB
oss-stable-rc/react-server/cjs/react-server-flight.production.js = 58.70 kB 58.15 kB = 11.60 kB 11.55 kB
oss-stable-semver/react-server/cjs/react-server-flight.production.js = 58.70 kB 58.15 kB = 11.60 kB 11.55 kB
oss-stable/react-server/cjs/react-server-flight.production.js = 58.70 kB 58.15 kB = 11.60 kB 11.55 kB

Generated by 🚫 dangerJS against b723e78

…d missing chunk

When aborting a prerender we should leave references unfulfilled, not share a common unfullfilled reference. functionally today this doesn't matter because we don't have resuming but the semantic is that the row was not available when the abort happened and in a resume the row should fill in. But by pointing each task to a common unfulfilled chunk we lose the ability for these references to resolves to distinct values on resume.

There are edge cases though like if we're aborting while rendering and we have a model that needs to refer to some reference that we don't know the identity of
@gnoff gnoff merged commit 92d26c8 into facebook:main Aug 20, 2024
185 checks passed
@gnoff gnoff deleted the save-an-error-id branch August 20, 2024 17:22
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