Closed danzhaaspaypal closed 3 months ago
Latest commit: 33bec0732fd52d3418f518f6ec276e5e60cc1575
The changes in this PR will be included in the next version bump.
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
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
paypal-js
PR locallynpm run build
in paypal-jspaypal-js
file explorer topackages/react-paypal-js/dist
and copy thecjs
andesm
directoriesnpm install
node_modules/@paypal/react-paypal-js/dist
cjs
andesm
directoriescjs
andesm
directories there.next
directory (previous node_module builds are cached there, and we do not want to use those)npm run dev
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
, you must first set the node version to the version specified in the.nvmrc
fileValidation