Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Nov 10, 2025

When reconnecting, we update the Suspense nodes while in a disconnected subtree where we don't measure. We need to measure explicitly when reconnecting an unsuspended Suspense node

@meta-cla meta-cla bot added the CLA Signed label Nov 10, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Nov 10, 2025
<Component key="inner-content">
[suspense-root] rects={[{x:1,y:2,width:15,height:1}, {x:1,y:2,width:14,height:1}]}
<Suspense name="outer" rects={[{x:1,y:2,width:15,height:1}, {x:1,y:2,width:14,height:1}]}>
<Suspense name="inner" rects={[{x:1,y:2,width:14,height:1}]}>
Copy link
Collaborator Author

@eps1lon eps1lon Nov 10, 2025

Choose a reason for hiding this comment

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

This measured a width of 13 without this change (see first commit) i.e. it was measuring without the resolved content.

@eps1lon eps1lon force-pushed the sebbie/measure-reconnect branch from 7bde0dd to 92fc74f Compare November 10, 2025 19:34
@eps1lon eps1lon force-pushed the sebbie/measure-reconnect branch from 92fc74f to 273e94d Compare November 10, 2025 19:36
@eps1lon eps1lon requested a review from sebmarkbage November 10, 2025 19:36
@eps1lon eps1lon marked this pull request as ready for review November 10, 2025 19:36
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