Skip to content

Bug: DevTools not finding/showing React components #20100

Closed
@Lagicrus

Description

@Lagicrus

When I use DevTools to select an element on the page, it can't jump/find it.
It also doesn't show it in the Components page.
This was checked by finding its parent and checking the children, non of the newly generated ones are there.
As a probably related bug Profiler doesn't show/record the changes.

React version: 16.13.1
React-dom version: 16.13.1
Parcel: 2.0.0-beta.1

Steps To Reproduce

  1. Have a parent element
  2. Have a child element (A)
  3. Using conditional rendering (condition ? A : B) "hide" A
  4. B now shows
  5. Try and select B using Chrome Dev Tools's "Select an element in the page to inspect it"
  6. Jumps nowhere/Can't find it manually in the list.

Example

2020-10-26_12-38-43
In this example, I demonstrate that it works on the Search Bar (light grey bar) which is the TextField=>InputBase tree, and the Container that contains the search & images and how hovering over the image doesn't do anything.
I then click on the image and nothing happens & the state panel on the right of Dev Tools empties itself.

The current behaviour

Can't find newly rendered components in React Dev Tools Components panel

The expected behavior

Being able to find the newly rendered components in React Dev Tools Components panel

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions