GitHub

daffOrdersCollectionReducer

Handles the reduction of order actions into the collection metadata state.

import { daffOrdersCollectionReducer } from '@daffodil/order/state'
function daffOrdersCollectionReducer<T extends DaffOrder = DaffOrder>(
  state: DaffCollectionMetadata = daffCollectionReducerInitialState
  action: DaffOrderCollectionChangePageSize | DaffOrderCollectionChangeCurrentPage | DaffOrderCollectionChangeSortingOption | ... 6 more ... | DaffOrderListSuccess<...>
): DaffOrderCollectionReducerState