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 |
||
---|---|---|
.. | ||
test | ||
index.ts | ||
use-store-cart-coupons.ts | ||
use-store-cart-item-quantity.ts | ||
use-store-cart.ts |