Describe the bug
Now useFieldValidator hook does not re-run validator function when reference to it changes. In addition, it does not call validator function on first render.
Expected behavior
It is expected that validator function will be called each time reference to it changes.
Additional context
In addition, we must decide if bindings to yup are necessary. Maybe it is better to get rid of this dependency.
Describe the bug
Now
useFieldValidatorhook does not re-runvalidatorfunction when reference to it changes. In addition, it does not callvalidatorfunction on first render.Expected behavior
It is expected that
validatorfunction will be called each time reference to it changes.Additional context
In addition, we must decide if bindings to
yupare necessary. Maybe it is better to get rid of this dependency.