Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formik's handleSubmit enable type check #5

Open
vahdet opened this issue Jan 18, 2021 · 2 comments
Open

Formik's handleSubmit enable type check #5

vahdet opened this issue Jan 18, 2021 · 2 comments
Assignees
Labels
bug Something isn't working external-dependency An issue caused by a dependency.

Comments

@vahdet
Copy link
Contributor

vahdet commented Jan 18, 2021

Currently, handleSubmit is used as handleSubmit as any as otherwise it emits a type error.

The issue is mentioned here. Although it is marked as closed, it is not elegantly solved yet. Check the comments there and remove as any once it is fixed.

@vahdet vahdet added bug Something isn't working external-dependency An issue caused by a dependency. labels Jan 18, 2021
@vahdet vahdet self-assigned this Jan 18, 2021
@ya5huk
Copy link

ya5huk commented Apr 13, 2022

No fix yet :(

@ya5huk
Copy link

ya5huk commented Apr 13, 2022

If anyone still tackles with it: @wsdt offered a walkaround (which walks around Typescript purpose as well) ->
onPress={handleSubmit as any}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external-dependency An issue caused by a dependency.
Projects
None yet
Development

No branches or pull requests

2 participants