We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
handleSubmitSync
Feature request
This code
<Form onSubmit={onSubmit}> {props => ( <form onSubmit={props.handleSubmit}> ... fields go here... <button type="submit">Submit</button> </form> )} </Form>
conflicts with eslint rule @typescript-eslint/no-misused-promises
eslint
@typescript-eslint/no-misused-promises
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md
I suggest to add new render prop handleSubmitSync that wraps handleSubmit and always returns undefined.
handleSubmit
undefined
[email protected] [email protected] [email protected] [email protected] @typescript-eslint/[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Are you submitting a bug report or a feature request?
Feature request
What is the current behavior?
This code
conflicts with
eslint
rule@typescript-eslint/no-misused-promises
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md
What is the expected behavior?
I suggest to add new render prop
handleSubmitSync
that wrapshandleSubmit
and always returnsundefined
.What's your environment?
The text was updated successfully, but these errors were encountered: