How is one meant to perform a silent validate? (v4) #3745
Unanswered
Winston-Guess
asked this question in
Q&A
Replies: 1 comment 1 reply
-
At the moment there isn't without calling This might be worth adding. For the meantime, you could use const { values, validate, resetForm, meta } = useForm();
async function validateSilent() {
const result = await validate();
resetForm({ values, touched: meta.value.touched });
} May I ask why do you need silent validation? what is your use-case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems there is no way to perform a silent
validate()
. Do I need to perform aresetForm()
after validating? Does that not revert all field values to their original state?It would be great if their were a silent option for
vaidate()
and/or if there was aresetFormErrors()
function available.Beta Was this translation helpful? Give feedback.
All reactions