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

[1.0] <FastField/> gets old initial values with enableReinitialize #461

Closed
sltenorio99 opened this issue Feb 26, 2018 · 0 comments · Fixed by #462
Closed

[1.0] <FastField/> gets old initial values with enableReinitialize #461

sltenorio99 opened this issue Feb 26, 2018 · 0 comments · Fixed by #462

Comments

@sltenorio99
Copy link
Contributor

sltenorio99 commented Feb 26, 2018

Bug, Feature, or Question?

Bug

Current Behavior

When enableReinitialize is enabled on Formik, <FastField/> receives the old context initial values instead of the new initial values.

Desired Behavior

FastField should behave like Field, when new initial values are found, update FastFields with the new initial values.

Suggested Solutions

Pass in the values from Formik's resetForm() function where FastField's this.reset() gets called.

Pull Request: #462


  • Formik Version: v1.0.0.alpha.1
  • React Version: 16.2.0
  • CodeSandbox Link: Edit Formik FastField Bug
  • Node Version: 9.5.0
  • Package Manager and Version: Webpack 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant