Replies: 2 comments
-
Similar discussion https://github.com/orgs/react-hook-form/discussions/10965 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! This also might be related: https://github.com/orgs/react-hook-form/discussions/8020 |
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.
-
I recently adopted
ts-standard
(the Typescript version of https://standardjs.com/) and it's flagging a lot of errors at formonSubmit()
, which is correct because onSubmit is expecting a handler function returning void, buthandleSubmit()
returns Promise. How would you fix these errors? Like my fix below?Error:
Promise-returning function provided to attribute where a void return was expected. (@typescript-eslint/no-misused-promises)
My fix
Beta Was this translation helpful? Give feedback.
All reactions