Open vilvaathibanpb opened 1 year ago
This issue makes the latest version completely unusable 😞
This issue makes the latest version completely unusable 😞
Indeed, because of this, I had to revert to formik@2.3.3
to be able to use it again. :(
I got the same issue after upgrade to formik@2.4.6. Going back to formik@2.4.5 fixed it...
Bug report
Current Behavior
When i used the latest formik (2.4.1) with the latest RN (0.71.8), I am facing a strange issue. Whenever
handleChange
orhandleSubmit
is executed, there is an infinite loop.With debugging I found issue in this line. When validation is ignored, by checking
shouldValidate === true
, the issue is gone.I also tried debugging validations, but
fieldRegistry
ref stays empty and hence no validations are returned in thevalidateFormWithHighPriority
function.Expected behavior
It should work without entering infinite loop
Reproducible example
Suggested solution(s)
Additional context
Your environment