woocommerce/plugins/woocommerce-blocks/assets/js/base/components/state-input
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
..
billing-state-input.js Display selected shipping location in cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1767) 2020-02-19 17:14:41 +00:00
index.js Add ShippingCalculator component (https://github.com/woocommerce/woocommerce-blocks/pull/1559) 2020-02-17 12:12:15 +01:00
shipping-state-input.js Display selected shipping location in cart block (https://github.com/woocommerce/woocommerce-blocks/pull/1767) 2020-02-19 17:14:41 +00:00
state-input.js 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