You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first component is the one with an issue, where the watch value remains undefined
All 3 components rendered follow the same scenario:
Every component has a useQuery hook that fetches data on a delay (this shouldn't matter)
Every component uses watch on the text field test
A very specific scenario where useFormState destructures both isSubmitSuccessful and isSubmitting will not update the watch state
Expected behaviour
The watched value should be updated in all cases.
Another observation is that this only happens if I'm using useController, using a regular <input {...methods.register("test")} /> wouldn't have this issue
Unless intended, this is a regression from 4.47.0, you can change the version and try it for yourself
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version Number
7.48.2
Codesandbox/Expo snack
https://stackblitz.com/edit/vitejs-vite-r4kauk?file=src%2FApp.tsx
Steps to reproduce
undefined
useQuery
hook that fetches data on a delay (this shouldn't matter)watch
on the text fieldtest
useFormState
destructures bothisSubmitSuccessful
andisSubmitting
will not update the watch stateExpected behaviour
The watched value should be updated in all cases.
useController
, using a regular<input {...methods.register("test")} />
wouldn't have this issueWhat browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: