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

Reduced re-render in useFieldArray() #1772

Merged

Conversation

keiya01
Copy link
Contributor

@keiya01 keiya01 commented Jun 4, 2020

I removed reRender() in useFieldArray().
Because reRender() had been executed if swap() is executed when formState.touched or formState.dirtyFields was changed.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 4, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9f9f744:

Sandbox Source
modest-pond-mni17 Configuration

@bluebill1049
Copy link
Member

bluebill1049 commented Jun 4, 2020

great pick up! thank you!

@bluebill1049 bluebill1049 merged commit dd946d3 into react-hook-form:master Jun 4, 2020
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 this pull request may close these issues.

2 participants