issue: isValidating stuck in true state after initial render in 7.51.1 #11719
Labels
regression
Regression with code change
status: under investigation
aware of this issue and pending for investigation
Version Number
7.51.1
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/react-hook-form-isvalidating-stuck-7-51-1-w9p44c
Steps to reproduce
Version
7.51.1
introduced a regression in the state ofisValidating
on the first validation withdefaultValues
. Version7.51.0
does not have this problem. I haven't been able to determine exactly what triggers the bug, but I suspect that having a nested field (preferences.theme
in my sandbox example) has something to do with it because I can't reproduce it with thename
field alone.isValidating
istrue
immediately upon loading, and no amount of form input will change it tofalse
. The button will remain disabled untilisValidating
isfalse
,isValid
istrue
, andisDirty
istrue
. The form state is output on screen and in the console.react-hook-form
from7.51.1
to7.51.0
inpackage.json
, and observe thatisValidating
is nowfalse
on initial load, and that changing the values of the form field causes the submit button to become enabled.Expected behaviour
isValidating
should befalse
once the initial validation completes.What browsers are you seeing the problem on?
Chrome
Relevant log output
SubmitButton::enabled: false {isDirty: false, isSubmitting: false, isValid: true, isValidating: true}
The text was updated successfully, but these errors were encountered: