This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Investigate if we can replace useCheckoutAddress
hook with direct interactions with wc/store/checkout
#6581
Labels
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
type: refactor
The issue/PR is related to refactoring.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
We have a hook:
useCheckoutAddress
which, following #6455 is mostly an abstraction to the selectors and actions on thewc/store/checkout
@wordpress/data
store with a couple of extra functions and propertoes.We should investigate if it is worthwhile removing this hook. The abstraction adds extra complexity to our codebase, and if we can avoid it we should.
If we do this, we will also need to add actions and cases in the reducer to handle the following:
setEmail
setBillingPhone
setShippingPhone
And new selectors:
defaultAddressFields
showShippingFields
showBillingFields
The text was updated successfully, but these errors were encountered: