This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Move CheckoutStateProvider
into a data store and create a hook to interact with the store
#6104
Labels
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
category: extensibility
Work involving adding or updating extensibility. Useful to combine with other scopes impacted.
status: stale
Stale issues and PRs have had no updates for 60 days.
CheckoutStateProvider
should be moved into a data store and a hook should be created to abstract interaction with it.There is an existing reducer related to this context provider found in this file https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/5dac3a0e74e2de9c4a4bfecca3f15b380b05433f/assets/js/base/context/providers/cart-checkout/checkout-state/reducer.ts which should be moved into the reducer used by
@wordpress/data
.Sub-tasks required to solve this issue
useSelect
anduseDispatch
)The text was updated successfully, but these errors were encountered: