ff9c73bec5
* 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 |
||
---|---|---|
.. | ||
cart.ts | ||
categories.js | ||
grid-block.js | ||
index.js | ||
products.js | ||
reviews.js | ||
saved-payment-methods.js | ||
shipping-rates.ts | ||
single-product-block.js |