GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fizz] Add resumeAndPrerender to Static Rendering by sebmarkbage · Pull Request #30950 · react/react

Conversation

@sebmarkbage

@sebmarkbage sebmarkbage commented Sep 12, 2024

Copy link
Copy Markdown
Contributor

This is only in the same experimental exports as resume. Useful with Postpone/Halt.

We already have prerender() to create a partial tree with postponed state. We also have resume() to dynamically resume such a tree.

This lets you do a new prerender by resuming an already existing postponed state. Basically creating a chain of preludes. The next prelude would include the scripts to patch up the document.

This mostly just works since both prerender and resume are already implemented using the same code so we just enable both at the root. I'm sure we'll find some edge cases since this wasn't considered when it was first written but so far I've only found an unrelated existing bug with keyPath fixed here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sebmarkbage added 3 commits September 11, 2024 11:35
@sebmarkbage
Add resumeAndPrerender exports
e43c353
@sebmarkbage
Create a resume request that also tracks postpones
852d978
@sebmarkbage
Missing keyPath
27fbed5
This would've shown up for FormState eventually.
@sebmarkbage
sebmarkbage requested a review from gnoff September 12, 2024 02:03
@vercel

vercel Bot commented Sep 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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 Sep 12, 2024 2:27am
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Sep 12, 2024
@vercel
vercel Bot deployed to Preview September 12, 2024 02:05
View deployment
@react-sizebot

react-sizebot commented Sep 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: d6cb4e771341ff82489c00f4907990cb8a75696b...121296e8ddf92bca604dacbe8324b257a8875f7a

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 = 506.54 kB 506.54 kB = 90.52 kB 90.52 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 = 514.44 kB 514.44 kB = 91.85 kB 91.84 kB
facebook-www/ReactDOM-prod.classic.js = 602.81 kB 602.81 kB = 106.63 kB 106.63 kB
facebook-www/ReactDOM-prod.modern.js = 579.08 kB 579.08 kB = 102.76 kB 102.76 kB
oss-experimental/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable-rc/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable-semver/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-experimental/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable-rc/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable-semver/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-experimental/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable-rc/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable-semver/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 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/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable-rc/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable-semver/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-stable/react-dom/static.node.js +26.22% 0.29 kB 0.36 kB +8.15% 0.18 kB 0.20 kB
oss-experimental/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable-rc/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable-semver/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-stable/react-dom/static.edge.js +19.47% 0.26 kB 0.31 kB +8.72% 0.17 kB 0.19 kB
oss-experimental/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable-rc/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable-semver/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-stable/react-dom/static.browser.js +19.03% 0.27 kB 0.32 kB +9.77% 0.17 kB 0.19 kB
oss-experimental/react-dom/cjs/react-dom-server.node.production.js +0.89% 245.18 kB 247.36 kB +0.31% 43.78 kB 43.91 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.production.js +0.79% 243.95 kB 245.88 kB +0.32% 42.71 kB 42.85 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.production.js +0.77% 249.58 kB 251.51 kB +0.30% 44.70 kB 44.84 kB
oss-experimental/react-dom/cjs/react-dom-server.node.development.js +0.67% 392.90 kB 395.51 kB +0.20% 69.02 kB 69.16 kB
oss-stable-rc/react-server/cjs/react-server.production.js +0.57% 108.42 kB 109.04 kB +0.07% 19.75 kB 19.76 kB
oss-stable-semver/react-server/cjs/react-server.production.js +0.57% 108.42 kB 109.04 kB +0.07% 19.75 kB 19.76 kB
oss-stable/react-server/cjs/react-server.production.js +0.57% 108.42 kB 109.04 kB +0.07% 19.75 kB 19.76 kB
oss-experimental/react-dom/cjs/react-dom-server.browser.development.js +0.56% 397.57 kB 399.82 kB +0.23% 69.64 kB 69.80 kB
oss-experimental/react-dom/cjs/react-dom-server.edge.development.js +0.56% 398.32 kB 400.57 kB +0.24% 69.74 kB 69.91 kB
oss-experimental/react-server/cjs/react-server.production.js +0.51% 121.76 kB 122.38 kB +0.02% 21.58 kB 21.58 kB
oss-stable-rc/react-server/cjs/react-server.development.js +0.44% 156.17 kB 156.85 kB +0.10% 28.56 kB 28.59 kB
oss-stable-semver/react-server/cjs/react-server.development.js +0.44% 156.17 kB 156.85 kB +0.10% 28.56 kB 28.59 kB
oss-stable/react-server/cjs/react-server.development.js +0.44% 156.17 kB 156.85 kB +0.10% 28.56 kB 28.59 kB
oss-experimental/react-server/cjs/react-server.development.js +0.38% 176.71 kB 177.39 kB +0.08% 31.34 kB 31.37 kB

Generated by 🚫 dangerJS against cd20701

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage
Test
cd20701
@sebmarkbage
sebmarkbage force-pushed the resumeandprerender branch from 71e5b43 to cd20701 Compare September 12, 2024 02:25
@vercel
vercel Bot deployed to Preview September 12, 2024 02:27
View deployment
gnoff
gnoff approved these changes Sep 12, 2024
View reviewed changes

@gnoff gnoff left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Missed an opportunity to call the API presume

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

unstubbable, alvarlagerlof, and gaearon reacted with laugh emoji
All reactions
  • 😄 3 reactions
@sebmarkbage
sebmarkbage merged commit 4735220 into react:main Sep 12, 2024
github-actions Bot pushed a commit that referenced this pull request Sep 12, 2024
@sebmarkbage
[Fizz] Add resumeAndPrerender to Static Rendering (#30950)
fadd1ee
This is only in the same experimental exports as `resume`. Useful with
Postpone/Halt.

We already have `prerender()` to create a partial tree with postponed
state. We also have `resume()` to dynamically resume such a tree.

This lets you do a new prerender by resuming an already existing
postponed state. Basically creating a chain of preludes. The next
prelude would include the scripts to patch up the document.

This mostly just works since both prerender and resume are already
implemented using the same code so we just enable both at the root. I'm
sure we'll find some edge cases since this wasn't considered when it was
first written but so far I've only found an unrelated existing bug with
`keyPath` fixed here.

DiffTrain build for [4735220](4735220)
This was referenced Sep 12, 2024
Upgrade React from 7771d3a7-20240827 to 47352209-20240912 vercel/next.js#70035
Closed
Upgrade React from 7771d3a7-20240827 to 94e652d5-20240912 vercel/next.js#70037
Merged
gnoff pushed a commit to vercel/next.js that referenced this pull request Sep 12, 2024
@vercel-release-bot
Upgrade React from 7771d3a7-20240827 to 94e652d5-20240912 (#70037)
f2cf2e0
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-7771d3a7-20240827` to `19.0.0-rc-94e652d5-20240912`**

[diff
react/react@7771d3a7...94e652d5](react/react@7771d3a...94e652d)

<details>
<summary>React upstream changes</summary>

- react/react#30952
- react/react#30950
- react/react#30946
- react/react#30934
- react/react#30947
- react/react#30945
- react/react#30938
- react/react#30936
- react/react#30879
- react/react#30888
- react/react#30931
- react/react#30930
- react/react#30832
- react/react#30929
- react/react#30926
- react/react#30925
- react/react#30905
- react/react#30900
- react/react#30910
- react/react#30906
- react/react#30899
- react/react#30919
- react/react#30708
- react/react#30907
- react/react#30897
- react/react#30896
- react/react#30895
- react/react#30887
- react/react#30889
- react/react#30893
- react/react#30892
- react/react#30891
- react/react#30882
- react/react#30881
- react/react#30870
- react/react#30849
- react/react#30878
- react/react#30865
- react/react#30869
- react/react#30875
- react/react#30800
- react/react#30762
- react/react#30831
- react/react#30866
- react/react#30853
- react/react#30850
- react/react#30847
- react/react#30842
- react/react#30837
- react/react#30848
- react/react#30844
- react/react#30839
- react/react#30802
- react/react#30841
- react/react#30827
- react/react#30826
- react/react#30825
- react/react#30824
- react/react#30840
- react/react#30838
- react/react#30836
- react/react#30819
- react/react#30816
- react/react#30814
- react/react#30813
- react/react#30812
- react/react#30811

</details>

---------

Co-authored-by: vercel-release-bot <[email protected]>
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@sebmarkbage
[Fizz] Add resumeAndPrerender to Static Rendering (react#30950)
2ca2a81
This is only in the same experimental exports as `resume`. Useful with
Postpone/Halt.

We already have `prerender()` to create a partial tree with postponed
state. We also have `resume()` to dynamically resume such a tree.

This lets you do a new prerender by resuming an already existing
postponed state. Basically creating a chain of preludes. The next
prelude would include the scripts to patch up the document.

This mostly just works since both prerender and resume are already
implemented using the same code so we just enable both at the root. I'm
sure we'll find some edge cases since this wasn't considered when it was
first written but so far I've only found an unrelated existing bug with
`keyPath` fixed here.

This branch was successfully deployed

1 active deployment
Preview — cd20701c Deployed Sep 12, 2024 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gnoff gnoff gnoff approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@sebmarkbage @react-sizebot @gnoff @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.