You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When handleSubmit from useFormikContext gets executed by a button on a onPress function, if the function passed to onSubmit prop on the Formik component throws an error, the error never climbs up to the handleSubmit function. It displays UnhandledError
Expected behavior
Errors thrown in onSubmit function should be thrown by handleSubmit function as well
Bug report
Current Behavior
When handleSubmit from useFormikContext gets executed by a button on a onPress function, if the function passed to onSubmit prop on the Formik component throws an error, the error never climbs up to the handleSubmit function. It displays UnhandledError
Expected behavior
Errors thrown in onSubmit function should be thrown by handleSubmit function as well
Reproducible example
https://codesandbox.io/p/sandbox/formik-codesandbox-template-forked-ctwkhg?file=%2Findex.js%3A17%2C16
Suggested solution(s)
Let the Error clim to how executes handleSubmit
Your environment
The text was updated successfully, but these errors were encountered: