Skip to content

[wip] Replace LegacyHidden with Activity mode#80

Draft
everettbu wants to merge 2 commits into
mainfrom
rh/legacy-hidden-activity
Draft

[wip] Replace LegacyHidden with Activity mode#80
everettbu wants to merge 2 commits into
mainfrom
rh/legacy-hidden-activity

Conversation

@everettbu

@everettbu everettbu commented Dec 12, 2025

Copy link
Copy Markdown

Mirror of facebook/react#32507
Original author: rickhanlonii


Based off PR: react/react#32499

There's a comment in the code added in this commit that we should replace LegacyHidden with an Activity mode:

https://github.com/facebook/react/blob/54fdb2f71810ef78c355108c219822ba097de8b3/packages/react-server/src/ReactFizzServer.js#L2253-L2255

This PR is an example of what that could look like, but it also exposes how difficult it is in the current model to add different modes with different behaviors. We could merge this, get on this version, and then iterate and improve.

Or we could just use this as an example to figure out the right model and layering.

Note: this kinda just ignores the view transition stuff for the legacy modes.

@everettbu everettbu added CLA Signed React Core Team Opened by a member of the React Core Team labels Dec 12, 2025
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.

2 participants