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

Reduce Rerenders and make implementation like react-hook-form #2667

Closed
dakshsaraf opened this issue Aug 5, 2020 · 4 comments
Closed

Reduce Rerenders and make implementation like react-hook-form #2667

dakshsaraf opened this issue Aug 5, 2020 · 4 comments
Labels

Comments

@dakshsaraf
Copy link

🚀 Feature request

Currently I have a form with 100+ field and I have used FastField for every field as each field is independent of every other field. Still the form is extremely slow and I suspect it is because the form renders on every key stroke due to the changes in FormikProps.

I would suggest that an optional implementation can be created for users that need it. The rerendering can be made like react-hook-form where the form only rerenders when the user is done typing for a particular field

Current Behavior

Rerender for every keystroke

Desired Behavior

Renrender Once User is finished typing

Suggested Solution

Make implementation like react-hook-form

Who does this impact? Who is this for?

Impacts people trying to create forms with large number of fields where the optimization of FastField is not enough

@FilmCoder
Copy link

use react hook form, formik isn't made for something like that

@bostrom
Copy link

bostrom commented Sep 23, 2020

@FilmCoder what is formik made for then?

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 60 days

@johnrom
Copy link
Collaborator

johnrom commented Jan 21, 2021

We're experimenting with multiple methods for optimizing the internals of Formik to support this and plenty other scenarios. You can keep up with some ideas in several places like #2846 and #2931

These optimizations will require a major rewrite and major version bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants