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

Memoize page header component #1608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Memoize page header component #1608

wants to merge 1 commit into from

Conversation

RobinOng
Copy link
Contributor

What?

Memoize page header component

Why?

When using this component in https://github.com/bigcommerce/ng-customers/pull/1293, React Testing Library could not detect when the button is clicked, but fixed after memoizing the component. It might be how final-form being volatile and re-rendering

Screenshots/Screen Recordings

Screen recording is available here https://github.com/bigcommerce/ng-customers/pull/1293

Testing/Proof

Manual testing

ping @bigcommerce/team-customers @leeBigCommerce

@RobinOng RobinOng requested review from a team as code owners December 12, 2024 03:22
Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest commit: 846fe4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@bigcommerce/big-design-patterns Patch
@bigcommerce/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@RobinOng RobinOng force-pushed the header branch 4 times, most recently from a2bbd4b to 846fe4c Compare December 12, 2024 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant