woocommerce/plugins/woocommerce-blocks/assets/js
Mike Jolley 87e8b26e6f Store billing address to local state and persist globally to prevent loss of data (https://github.com/woocommerce/woocommerce-blocks/pull/2374)
* Remove unused shippingAsBilling prop from billing data context

* Move functions out of component and add docblocks

* Local address state

* Refactor into new custom hook

* Remove TODO and code fixed in core

* useShallowEqual to prevent updates on all field changes

* Fix stale validation errors

* cleanup

* Should be setting local state not global state for email and phone

* Combine useEffects and pass correct deps

* Update assets/js/base/hooks/checkout/use-checkout-address.js

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>

* Prettier

* Move validation update check into updateValidationError

* Fix state updaters

* Fix context definition for setShippingAddress

* Fix validation updates

* errorId dep

* Reapply changes to checkout block

* Update equality checks

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2020-05-06 11:21:30 +01:00
..
atomic Trigger fragment refresh after editing cart item quantities (https://github.com/woocommerce/woocommerce-blocks/pull/2266) 2020-04-24 14:41:32 +01:00
base Store billing address to local state and persist globally to prevent loss of data (https://github.com/woocommerce/woocommerce-blocks/pull/2374) 2020-05-06 11:21:30 +01:00
blocks Store billing address to local state and persist globally to prevent loss of data (https://github.com/woocommerce/woocommerce-blocks/pull/2374) 2020-05-06 11:21:30 +01:00
blocks-registry Payment methods `placeOrderButtonLabel` config (https://github.com/woocommerce/woocommerce-blocks/pull/2362) 2020-04-30 10:52:36 +01:00
components Migrate REST API usage to the Store API (https://github.com/woocommerce/woocommerce-blocks/pull/2282) 2020-04-24 14:36:47 +01:00
data Update API status codes (https://github.com/woocommerce/woocommerce-blocks/pull/2353) 2020-04-29 15:47:05 +01:00
filters Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
hocs Migrate REST API usage to the Store API (https://github.com/woocommerce/woocommerce-blocks/pull/2282) 2020-04-24 14:36:47 +01:00
icons Show feedback on buttons/checkout when processing (https://github.com/woocommerce/woocommerce-blocks/pull/2186) 2020-04-15 17:09:15 +01:00
legacy Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
payment-method-extensions/payment-methods Ensure stripe payment request "canMakePayment" configuration uses site country. (https://github.com/woocommerce/woocommerce-blocks/pull/2372) 2020-05-01 07:24:28 -04:00
previews show preview "saved payment methods" in editor (https://github.com/woocommerce/woocommerce-blocks/pull/2151) 2020-04-15 12:05:01 +12:00
settings Don't show checkout block for logged out users unless store is configured to allow guest checkout (https://github.com/woocommerce/woocommerce-blocks/pull/2375) 2020-05-04 15:40:09 -04:00
type-defs Store billing address to local state and persist globally to prevent loss of data (https://github.com/woocommerce/woocommerce-blocks/pull/2374) 2020-05-06 11:21:30 +01:00
utils Inject block attributes rather than save them (https://github.com/woocommerce/woocommerce-blocks/pull/2273) 2020-04-27 12:06:58 -04:00
index.js Give Woo Icon special treatment by making it a component (https://github.com/woocommerce/woocommerce-blocks/pull/1702) 2020-02-10 14:24:02 +01:00