Skip to content

[DevTools] Support collapsing the entire component tree #22074

@samwinslow

Description

@samwinslow

Similar to #16463, I find myself overwhelmed when trying to navigate the React component tree because everything is expanded by default.

  • IMO there should be a simple way to recursively collapse everything and view the tree "top-down" rather than "bottom-up," just as VSCode's [-] button allows you to do.

Screen Shot 2021-08-11 at 2 21 56 PM

  • It would also be sensible to add vertical lines below each component's expand/collapse handle, because it becomes hard to see which elements are siblings in the tree when it's nested e.g. 15 layers deep.

Screen Shot 2021-08-11 at 2 23 18 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions