Skip to content

[DevTools Bug]: Selecting/deselecting boolean from DevTools Component props causing loss of class functions #24781

Closed
@a-gehlot

Description

@a-gehlot

Website or app

https://github.com/a-gehlot/react-error

Repro steps

  1. Install webpack, react, babel with "npm install" in terminal.

  2. Bundle app with webpack via "webpack --watch --mode=developement" in terminal.

  3. Open up "index.html" in Chrome and open React DevTools. Under Components, there should be a Dog component within a Person component, where the Person is passed as a prop to the Dog.

  4. Under Dog props, there should be a person object with a value of present being true. If you click the button, the value of present should change to false, the number should switch to 0, and the checkbox should get deselected. However, if you manually select the checkbox to change between true/false, the prop seems to lose its prototype references to the original JS class, as an error stating it cannot find the function will be shown.

Screen.Recording.2022-06-23.at.1.28.54.PM.mov

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions