Skip to content

Conversation

sebmarkbage
Copy link
Collaborator

This collects the ReactAsyncInfo between instances. It associates it with the parent. Typically this would be a Server Component's Promise return value but it can also be Promises in a fragment. It can also be associated with a client component when you pass a Promise into the child position e.g. <div>{promise}</div> then it's associated with the div. If an instance is filtered, then it gets associated with the parent of that's unfiltered.

The stack trace currently isn't source mapped. I'll do that in a follow up.

We also need to add a "short name" from the Promise for the description (e.g. url). I'll also add a little marker showing the relative time span of each entry.

Screenshot 2025-07-26 at 7 56 00 PM Screenshot 2025-07-26 at 7 55 23 PM

@sebmarkbage sebmarkbage requested review from eps1lon and hoxyq July 27, 2025 00:03
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 27, 2025
Comment on lines +758 to +761
inspectedElement.suspendedBy = cleanForBridge(
inspectedElement.suspendedBy,
createIsPathAllowed('suspendedBy'),
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an empty array here, maybe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not the same because this converts it to DehydratedData which gets hydrated on the frontend.

@sebmarkbage sebmarkbage merged commit 4a58b63 into facebook:main Jul 28, 2025
241 checks passed
sebmarkbage added a commit that referenced this pull request Jul 28, 2025
…lative to others (#34016)

Stacked on #34012.

This shows a time track for when some I/O started and when it finished
relative to other I/O in the same component (or later in the same
suspense boundary).

This is not meant to be a precise visualization since the data might be
misleading if you're running this in dev which has other perf
characteristics anyway. It's just meant to be a general way to orient
yourself in the data.

We can also highlight rejected promises here.

The color scheme is the same as Chrome's current Performance Track
colors to add continuity but those could change.

<img width="478" height="480" alt="Screenshot 2025-07-27 at 11 48 03 PM"
src="https://github.com/user-attachments/assets/545dd591-a91f-4c47-be96-41d80f09a94a"
/>
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.

4 participants