Skip to content

When compoonent overwrites the state then the state which is rendered does not match the state I see in devtools #319

Open
@capaj

Description

@capaj

When I change the state in the devtools but the component has getDerivedStateFromProps which overwrites it, then the state which is rendered does not match the state I see in devtools. This is confusing.
It would be best if devtoools could refresh the component state after the component rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions