-
Notifications
You must be signed in to change notification settings - Fork 219
Debounce billingData to be used as a dependency on the useEffect hook #4775
Conversation
Size Change: +140 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
Hey @tjcafferkey The gist of it is that, while we can debounce cc @ralucaStan and @nerrad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests out 👍.
@senadir would it make sense to merge this PR given its a fix and then reopen another issue with the proposed solution you've outlined in your comment? This way it's better than what it was but agreed not ideal. |
Sure thing! Just mark that line with a |
Closed by #4776 |
Description
Debounce
billingData
to be used as a dependency in the useEffect hook. Debouncing is necessary to prevent an excessive amount of useEffect executions.Fixes #4766
Testing
Automated Tests
Manual Testing
How to test the changes in this Pull Request:
assets/js/base/context/providers/cart-checkout/payment-methods/use-payment-method-registration.ts
) for the purpose of testing only.and add
registerPaymentMethodExtensionCallbacks
to the existing import of'@woocommerce/blocks-registry'
Changelog