Skip to content

[Fizz] Don't perform work when closing#30497

Merged
gnoff merged 1 commit intofacebook:mainfrom
gnoff:dont-render-on-closing
Jul 29, 2024
Merged

[Fizz] Don't perform work when closing#30497
gnoff merged 1 commit intofacebook:mainfrom
gnoff:dont-render-on-closing

Conversation

@gnoff
Copy link
Copy Markdown
Collaborator

@gnoff gnoff commented Jul 29, 2024

When a Fizz render is closing but not yet closed it's possible that pinged tasks can spawn more work. The point of the closing state is to allow time to start piping/reading the underlying stream but semantically the render is finished at that point so work should no longer happen.

When a Fizz render is closing but not yet closed it's possible that pinged tasks can spawn more work. The point of the closing state is to allow time to start piping/reading the underlying stream but semantically the render is finished at that point so work should no longer happen.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 29, 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 Jul 29, 2024 4:29pm

@react-sizebot
Copy link
Copy Markdown

Comparing: a6b5ed01ae98a18507cb92d8e932a8ca321602e6...029d671ff97ac627dd39444dcea1f7f9ac26486d

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 +0.05% 1.82 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 501.46 kB 501.46 kB = 89.98 kB 89.98 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 506.28 kB 506.28 kB = 90.68 kB 90.68 kB
facebook-www/ReactDOM-prod.classic.js = 601.27 kB 601.27 kB = 106.28 kB 106.28 kB
facebook-www/ReactDOM-prod.modern.js = 577.38 kB 577.38 kB = 102.52 kB 102.52 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 27caeaa

@gnoff gnoff merged commit 9938e24 into facebook:main Jul 29, 2024
@gnoff gnoff deleted the dont-render-on-closing branch July 29, 2024 18:10
github-actions Bot pushed a commit that referenced this pull request Jul 29, 2024
When a Fizz render is closing but not yet closed it's possible that
pinged tasks can spawn more work. The point of the closing state is to
allow time to start piping/reading the underlying stream but
semantically the render is finished at that point so work should no
longer happen.

DiffTrain build for [9938e24](9938e24)
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