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

perf(v2): improve responsiveness of public form when filling inputs (again) #3911

Merged
merged 2 commits into from
May 30, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented May 26, 2022

Problem

This PR moves the form input watcher into PublicFormSubmitButton subcomponent so that input changes will not rerender the entire FormFields component leading to terrible performance.

This perf degradation was introduced in #3813.

Oddy reminiscent of #3576

Solution

Bug Fixes:

  • perf: move form input watcher into PublicFormSubmitButton subcomponent

Before & After Screenshots

BEFORE:
Recording 2022-05-27 at 01 10 40

AFTER:
Recording 2022-05-27 at 01 06 06

that component is split up so that input changes will not rerender the entire FormFields component leading to terrible performance.
@karrui karrui changed the title perf!: move form input watcher into PublicFormSubmitButton subcomponent perf(v2): improve responsiveness of public form when filling inputs May 26, 2022
@karrui karrui changed the title perf(v2): improve responsiveness of public form when filling inputs perf(v2): improve responsiveness of public form when filling inputs (again) May 26, 2022
Copy link
Contributor

@hanstirtaputra hanstirtaputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karrui karrui requested review from mantariksh and tshuli May 27, 2022 05:45
@karrui karrui merged commit 8756548 into form-v2/develop May 30, 2022
@karrui karrui deleted the form-v2/fix-publicform-perf branch May 30, 2022 07:46
@justynoh justynoh mentioned this pull request Oct 5, 2022
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.

3 participants