Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Highlight the owner tree when a node is focused #1094

Description

@gaearon

When "owner" information is available, filter the breadcrumbs strip to only show owners. When this info is not available, filter it to only show "Composite" components (e.g. no host nodes).

Original description

I often want to debug why a prop is wrong. Unfortunately in deep trees it's very hard to say which component has passed which prop down (and at which point it got messed up).

We already have a concept of "owners" in React. We could surface that information by highlighting the owner tree whenever you focus on a node. It could be something subtle, like a small difference in opacity, or background color of owners, but I think could really help navigate large trees.

As a bonus I think it would make the "unrelated HOCs" issue less annoying, at least for the use case of debugging "why is this render result wrong" (which for me represents the majority of use cases for DevTools).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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