devtools
devtools copied to clipboard
dirtyFields will not update after reset when using devtools
Codesandbox link
https://codesandbox.io/s/react-hook-form-v6-formstate-forked-4qlr7d?file=/src/index.jsx
Reproduce
- type some characters in input box
- click reset button
- type in input box
- after above, you can see dirtyFields will not update. In devtools plane, only value field still update
Addition
- if you delete characters which type in step3, the dirtyFields will work on normal
- if you use resetField button or remove Devtool, the dirtyFields will work on normal