import { daffCartReducer } from '@daffodil/cart/state'
Calls each of the individual cart reducers in turn, passing the returned state into the next.
function daffCartReducer<T extends DaffCart = DaffCart>(
state: DaffCartReducerState<any> = daffCartReducerInitialState
action: ActionTypes<T, DaffCartItemInput, DaffCartOrderResult>
): DaffCartReducerState<T>
Parameter | state: DaffCartReducerState |
---|---|
Default | daffCartReducerInitialState |
Description |
Parameter | action: ActionTypes |
---|---|
Description |