Missing value property in useValidateField result #4894
federicobartoli
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using useValidateField('field_name'), the returned object only contains errors and valid properties. The ValidationResult interface includes an optional value property:
However, this value property is not being used in the returned object from useValidateField.
The value property is necessary to access the validated type of the field, which otherwise would be an union between the validated type and undefined.
Questions
Any insights on the intended usage of useValidateField and how to effectively work with single field validation would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions