import { daffOrdersCollectionReducer } from '@daffodil/order/state'
Handles the reduction of order actions into the collection metadata state.
function daffOrdersCollectionReducer<T extends DaffOrder = DaffOrder>(
state: DaffCollectionMetadata = daffCollectionReducerInitialState
action: DaffOrderCollectionChangePageSize | DaffOrderCollectionChangeCurrentPage | DaffOrderCollectionChangeSortingOption | ... 6 more ... | DaffOrderListSuccess<...>
): DaffOrderCollectionReducerState
| Parameter | state: DaffCollectionMetadata |
|---|---|
| Default | daffCollectionReducerInitialState |
| Description |
| Parameter | action: DaffOrderCollectionChangePageSize | DaffOrderCollectionChangeCurrentPage | DaffOrderCollectionChangeSortingOption | ... 6 more ... | DaffOrderListSuccess<...> |
|---|---|
| Description |