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

[wip] Replace LegacyHidden with Activity mode #32507

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rickhanlonii
Copy link
Member

@rickhanlonii rickhanlonii commented Mar 3, 2025

Based off PR: #32499

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

// TODO: Delete in LegacyHidden. It's an unstable API only used in the
// www build. As a migration step, we could add a special prop to Offscreen
// that simulates the old behavior (no hiding, no change to effects).

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.

@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Mar 3, 2025
@rickhanlonii rickhanlonii requested review from sebmarkbage and acdlite and removed request for sebmarkbage March 3, 2025 23:00
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