Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React hook form + DevTool + reset causes from to not register fields correctly #173

Open
1 task done
phyolim opened this issue Aug 31, 2022 · 0 comments
Open
1 task done

Comments

@phyolim
Copy link

phyolim commented Aug 31, 2022

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

  1. Go to the sandbox
  2. Form doesn't get filled in with initial values

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

  • I agree to follow this project's Code of Conduct
@bluebill1049 bluebill1049 transferred this issue from react-hook-form/react-hook-form Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant