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
To be able to destructure props out of useFormState I must cast it as FormState since the existing can be void | FormState.
useFormState
as FormState
void | FormState
I should not have to cast it as FormState. const { submitError, submitFailed, submitting } = useFormState() should work.
const { submitError, submitFailed, submitting } = useFormState()
react-final-form v5.0.2
react-final-form
The text was updated successfully, but these errors were encountered:
I've prepared a fix for this in #482
Sorry, something went wrong.
Published fix in v5.1.1.
v5.1.1
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
Are you submitting a bug report or a feature request?
What is the current behavior?
To be able to destructure props out of
useFormState
I must cast itas FormState
since the existing can bevoid | FormState
.What is the expected behavior?
I should not have to cast it as FormState.
const { submitError, submitFailed, submitting } = useFormState()
should work.Sandbox Link
What's your environment?
react-final-form
v5.0.2Other information
The text was updated successfully, but these errors were encountered: