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 fixture] Remove redundant use #26373

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Mar 11, 2023

Now that promises are renderable nodes, we can remove the use call from the root of the Flight fixture.

Uncached promises will likely be accompanied by a warning when they are rendered outside a transition. But this promise is the result of a Flight response, so it's cached. And it's also a rendered as part of a transition. So it's fine. Indeed, this is the canonical way to use this feature.

Now that promises are renderable nodes, we can remove the `use` call
from the root of the Flight fixture.

Uncached promises will likely be accompanied by a warning when they are
rendered outside a transition. But this promise is the result of a
Flight response, so it's cached. And it's also a rendered as part of a
transition. So it's fine. Indeed, this is the canonical way to use
this feature.
@acdlite acdlite changed the title [Flight fixtures] Remove redundant use [Flight fixture] Remove redundant use Mar 11, 2023
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Mar 11, 2023
@react-sizebot
Copy link

Comparing: 1317681...5c3f3cd

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 = 157.57 kB 157.57 kB = 49.83 kB 49.83 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 159.58 kB 159.58 kB = 50.51 kB 50.51 kB
facebook-www/ReactDOM-prod.classic.js = 542.16 kB 542.16 kB = 96.23 kB 96.23 kB
facebook-www/ReactDOM-prod.modern.js = 526.02 kB 526.02 kB = 93.92 kB 93.92 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 5c3f3cd

@acdlite acdlite merged commit 56a3c18 into facebook:main Mar 14, 2023
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