woocommerce/plugins/woocommerce-blocks/assets/js/data/cart
Albert Juhé Lluveras ff9c73bec5 Implement memoization in several selectors and hooks (https://github.com/woocommerce/woocommerce-blocks/pull/4548)
* Memoize cartErrors from useStoreCart

* Implement memoization to other selectors

* Use EMPTY_ARRAY in more cases

* Create getArrayOrEmptyConstant function

* Remove DEFAULT_EMPTY_ARRAY constant and use EMPTY_ARRAY instead

* Wrap removeItem into useCallback

* Fix tests

* Do not default to empty array/object for values that should exist and use different constant for empty values

* Type two empty array constants from default-states.ts
2021-08-13 15:28:41 +02:00
..
test Decode fees name so special characters are rendered correctly (https://github.com/woocommerce/woocommerce-blocks/pull/3721) 2021-02-04 18:05:47 +01:00
action-types.ts Rest API batching support (2) (https://github.com/woocommerce/woocommerce-blocks/pull/4075) 2021-04-20 16:44:49 +01:00
actions.ts Add camelcase rule to eslint config (https://github.com/woocommerce/woocommerce-blocks/pull/4382) 2021-07-09 17:53:45 +01:00
constants.ts Ensure cart changes remain after using back button to get back to the cart (https://github.com/woocommerce/woocommerce-blocks/pull/3960) 2021-03-24 13:28:11 +00:00
controls.js Rest API batching support (2) (https://github.com/woocommerce/woocommerce-blocks/pull/4075) 2021-04-20 16:44:49 +01:00
index.ts load controls in cart (https://github.com/woocommerce/woocommerce-blocks/pull/4291) 2021-06-04 09:17:13 +01:00
reducers.ts Implement memoization in several selectors and hooks (https://github.com/woocommerce/woocommerce-blocks/pull/4548) 2021-08-13 15:28:41 +02:00
resolvers.ts Add TypeScript support and convert cart data store to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/3768) 2021-02-23 20:36:24 -05:00
selectors.ts Implement memoization in several selectors and hooks (https://github.com/woocommerce/woocommerce-blocks/pull/4548) 2021-08-13 15:28:41 +02:00