Why is validate function undefined when obtained from useFormikContext? #4010
Unanswered
runoncedev
asked this question in
Q&A
Replies: 0 comments
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.
-
When I try to get the
validate
function fromuseFormikContext
, it's alwaysundefined
:The component is a child of
<Formik validate={() => { ... }} />
.What I'm missing?
Example: https://stackblitz.com/edit/formik-typescript-playground-vgg6aq?file=index.tsx,Foo.tsx%3AL7
Beta Was this translation helpful? Give feedback.
All reactions