Skip to content

useFieldValidator hook not working as expected #290

@AlexShukel

Description

@AlexShukel

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeatureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions