Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Oct 20, 2025

When we change component filters, we unmount the whole tree and mount it again. That means that any Suspense rect measurement will be gone. On mount, we're not measuring Suspense nodes since there's nothing to measure. Users can't even get back the original state since we no longer know which Fibers we forced a fallback for.

Now we're scheduling updates on the Fibers we removed forced states from when applying new filters. We could also do this in untrackFiber directly but most of the time this will be for Fibers that are no longer alive so the checks would be wasted.

As an alternative, we could collect all rects of suspended boundaries and restore those rects. We'd also have to restore the Sets of Fibers with forced states.

This is mainly relevant when editing the Suspense timeline and moving in and out of Activity slices (#34908)

@meta-cla meta-cla bot added the CLA Signed label Oct 20, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Oct 20, 2025
@eps1lon eps1lon requested a review from sebmarkbage October 20, 2025 20:43
@eps1lon eps1lon marked this pull request as ready for review October 20, 2025 20:43
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.

1 participant