[DevTools] Add breadcrumbs to Suspense tab #34312
Merged
eps1lon merged 2 commits intofacebook:mainfrom Aug 28, 2025
Merged
Conversation
hoxyq
reviewed
Aug 27, 2025
Contributor
hoxyq
left a comment
There was a problem hiding this comment.
Isn't the tree on the left tab of the Suspense panel supposed to be used for it?
With components panel there is a much common scenario where parent stack != owner stack. Is there a value in this for Suspense boundaries, though?
|
|
||
| export default function SuspenseBreadcrumbs(): React$Node { | ||
| const store = useContext(StoreContext); | ||
| useContext(SuspenseTreeStateContext); |
Collaborator
Author
It'll contain named Activity boundaries. #34159 is obsolete. |
Helps orienting the currently selected Suspense in the tree.
54827ed to
73d2ecb
Compare
hoxyq
approved these changes
Aug 28, 2025
This was referenced Aug 28, 2025
github-actions bot
pushed a commit
to code/lib-react
that referenced
this pull request
Aug 31, 2025
DiffTrain build for [89a803f](facebook@89a803f)
github-actions bot
pushed a commit
to code/lib-react
that referenced
this pull request
Aug 31, 2025
DiffTrain build for [89a803f](facebook@89a803f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #34299
Helps orienting the currently selected Suspense in the tree. This is the same display as with the Owner hierarchy in the Components tab minus handling overflow. The overflow is just a scrollbar for now.
Probably better to keep the lineage locked while you click in it. At least while we don't have 1st class backwards/forwards navigation.
CleanShot.2025-08-27.at.10.10.42-converted.mp4