react-hook-form / devtools

📋 DevTools to help debug forms.
https://react-hook-form.com/dev-tools
MIT License
638 stars 48 forks source link

issue: useForm with values parameter doesn't work with hook Devtools #203

Open veih14 opened 10 months ago

veih14 commented 10 months ago

Version Number

7.47.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/heuristic-babycat-cv9mhj?embed=1&file=%2Fsrc%2Findex.jsx%3A19%2C4

Steps to reproduce

  1. Go to the CodeSandBox link
  2. Notice the values don't get populated when the API is returned
  3. But if you comment out hook forms DevTool then the input will be populated with the correct API return value

Expected behaviour

Values parameter from useForm should update the form values once the query has been completed.

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct