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
Currently createForm is only called on componentWillMount. If props change and the form's initial state depends on props it won't be updated.
createForm
componentWillMount
Add a value prop to <FormProvider> to allow for updating the form state if props have changed. Also paves the way for improved composability.
value
<FormProvider>
<FormProvider form={form} value={props.user} onSubmit={saveUser}> ... </FormProvider>
The text was updated successfully, but these errors were encountered:
This may make withForm accepting a function of props redundant.
withForm
Sorry, something went wrong.
No branches or pull requests
Currently
createForm
is only called oncomponentWillMount
. If props change and the form's initial state depends on props it won't be updated.Add a
value
prop to<FormProvider>
to allow for updating the form state if props have changed. Also paves the way for improved composability.The text was updated successfully, but these errors were encountered: