Validation execution at different timestamp when using third party library for Validation #8371
Unanswered
younessdev9
asked this question in
General
Replies: 2 comments 4 replies
-
what do you mean by different timestamps? are we talking about ms in here? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I find it quite tricky when adding validation using Yupjs and when using the native Validation that comes with RHF(react-hook-form) so basically, I'm trying to intercept the onSubmit function that the handleSubmit consumes
I have Form as steps and I'm having a yup validation already set see example
what happens is when hitting submit the validation gets executed and the errors log out, which doesn’t when using the RHF validation after reading the source code of this file I found that the execution of the schema validation happens in the handleSubmit function which doesn’t in the register function, as far as I know, I'm requesting to have a unified time when the validation gets executed
Beta Was this translation helpful? Give feedback.
All reactions