preact-devtools icon indicating copy to clipboard operation
preact-devtools copied to clipboard

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

Open capaj opened this issue 4 years ago • 0 comments

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.

capaj avatar Aug 27 '21 08:08 capaj