Skip to content

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

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.

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

    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