is there any way to use setSubmitting outside the formik form onSubmit #3519
Unanswered
sulemanelahi
asked this question in
Q&A
Replies: 1 comment
-
// Handle the state by yourself.
const [submitting, setSubmitting] = useState(false);
<Formik
OnSubmit: {async (values) => {
setSubmitting(true);
// your async logic
setSubmitting(false);
}} Now you have access to |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Normal we use setSubmitting inside onSubmit attribute
so is there any so I can use setSubmitting outside the
<Formik></Formik>
componentBeta Was this translation helpful? Give feedback.
All reactions