It works if devtools is removed from the component. It also works if form version is downgraded to 7.15.
It used to work fine on version 7.15. I didn't try other versions to find out which one broke it. I'm also not sure if it's a bug on @hookform/devtools or on react-hook-form.
Expected behaviour
Form gets reset to async values and fields register correctly. Dev tools display fields with values.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Version Number
7.34.2
Codesandbox/Expo snack
https://stackblitz.com/edit/react-hook-form-set-form-values-in-useeffect-m65nbe?file=package.json,App.jsx
Steps to reproduce
It works if devtools is removed from the component. It also works if form version is downgraded to 7.15.
It used to work fine on version 7.15. I didn't try other versions to find out which one broke it. I'm also not sure if it's a bug on @hookform/devtools or on react-hook-form.
Expected behaviour
Form gets reset to async values and fields register correctly. Dev tools display fields with values.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct