import { daffCustomerAddressEntitiesReducer } from '@daffodil/customer/state'
Reducer function that catches actions and changes/overwrites product entities state.
function daffCustomerAddressEntitiesReducer<T extends DaffCustomerAddress = DaffCustomerAddress>(
state: DaffOperationEntityState<T> = daffCustomerAddressEntitiesAdapter<T>().getInitialState()
action: DaffCustomerAddressList | DaffCustomerAddressListFailure | DaffCustomerAddressLoad | ... 24 more ... | DaffCustomerChangeEmailSuccess<...>
): DaffOperationEntityState<T>
Parameter | state: DaffOperationEntityState |
---|---|
Default | daffCustomerAddressEntitiesAdapter<T>().getInitialState() |
Description | current State of the redux store |
Parameter | action: DaffCustomerAddressList | DaffCustomerAddressListFailure | DaffCustomerAddressLoad | ... 24 more ... | DaffCustomerChangeEmailSuccess<...> |
---|---|
Description | CartItemGrid, BestSellers, or CartItem actions |