GitHub

daffProductEntitiesReducer

import { daffProductEntitiesReducer } from '@daffodil/product/state'

Reducer function that catches actions and changes/overwrites product entities state.

function daffProductEntitiesReducer<T extends DaffProduct>(
  state: EntityState<T> = daffProductEntitiesAdapter<T>().getInitialState()
  action: DaffProductGridLoad | DaffProductGridLoadFailure | DaffProductGridReset | DaffBestSellersLoad | ... 11 more ... | DaffProductPageLoadSuccess<...>
): EntityState<T>