Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Aug 14, 2025

This computes a min and max range for the whole suspense boundary even when selecting a single component so that each component in a boundary has a consistent range.

The start of this range is the earliest start of I/O in that boundary or the end of the previous suspense boundary, whatever is earlier. If the end of the previous boundary would make the range large, then we cap it since it's likely that the other boundary was just an independent render.

The end of the range is the latest end of I/O in that boundary. If this is smaller than the end of the previous boundary plus the 300ms throttle, then we extend the end. This visualizes what throttling could potentially do if the previous boundary committed right at its end. Ofc, it might not have committed exactly at that time in this render. So this is just showing a potential throttle that could happen. To see actual throttle, you look in the Performance Track.

Screenshot 2025-08-14 at 12 41 43 AM

We could come up with some annotation to highlight that this is eligible to be throttled in this case. If the lines don't extend to the edge, then it's likely it was throttled.

@sebmarkbage sebmarkbage requested a review from eps1lon August 14, 2025 04:46
@meta-cla meta-cla bot added the CLA Signed label Aug 14, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Aug 14, 2025
@sebmarkbage sebmarkbage merged commit 2ba7b07 into facebook:main Aug 15, 2025
247 checks passed
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