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

fix: button rerender issue due to obj in dependency array #521

Merged
merged 4 commits into from
Jun 12, 2024

Conversation

danzhaaspaypal
Copy link
Contributor

@danzhaaspaypal danzhaaspaypal commented Jun 12, 2024

Button rerender was rerendering unintentionally due to a non-primitive value, the message obj, being passed into the useEffect dependency array. This fixes the issue by stringify-ing the message.

Copy link

changeset-bot bot commented Jun 12, 2024

🦋 Changeset detected

Latest commit: 8f6f832

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

This PR includes changesets to release 1 package
Name Type
@paypal/react-paypal-js 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

@danzhaaspaypal danzhaaspaypal marked this pull request as ready for review June 12, 2024 16:30
@danzhaaspaypal danzhaaspaypal requested a review from a team as a code owner June 12, 2024 16:30
@danzhaaspaypal danzhaaspaypal merged commit a87cfa5 into main Jun 12, 2024
3 checks passed
@danzhaaspaypal danzhaaspaypal deleted the fix-button-message-render branch June 12, 2024 16:57
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