GitHub

daffProductEntitiesReducer

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

import { daffProductEntitiesReducer } from '@daffodil/product/state'
function daffProductEntitiesReducer<T extends DaffProduct>(
  state: EntityState<T> = daffProductEntitiesAdapter<T>().getInitialState()
  action: DaffProductGridLoad | DaffProductGridLoadFailure | DaffProductGridReset | DaffBestSellersLoad | ... 11 more ... | DaffProductPageLoadSuccess<...>
): EntityState<T>