paypal / paypal-js

Loading wrapper and TypeScript types for the PayPal JS SDK
Apache License 2.0
238 stars 83 forks source link

fix: message props update without button teardown #536

Closed danzhaaspaypal closed 3 months ago

danzhaaspaypal commented 4 months ago

There was a bug where updating button message properties such as amount would tear down then rebuild the entire button component to render the new message. This fix allows just the message to rerender and preserves the button.

Testing instructions:

Setup

Validation

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 33bec0732fd52d3418f518f6ec276e5e60cc1575

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 | Minor |

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