Is there a way to change validationSchema dinamically? #2206
-
|
I was wondering if it's possible to swap different validationSchema after useForm has already been called? |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Jul 14, 2020
Replies: 2 comments 1 reply
-
|
you can use resolver and hoist different schema inside. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tjdam
-
|
I'm probably being super noob here, but you mean resolver as in the replacement for validationSchema in RHF 6? |
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
you can use resolver and hoist different schema inside.