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 | DaffProductLoad | ... 7 more ... | DaffProductPageLoadSuccess<...>
): EntityState<T>
| Parameter | state: EntityState |
|---|---|
| Default | daffProductEntitiesAdapter<T>().getInitialState() |
| Description | current State of the redux store |
| Parameter | action: DaffProductGridLoad | DaffProductGridLoadFailure | DaffProductGridReset | DaffProductLoad | ... 7 more ... | DaffProductPageLoadSuccess<...> |
|---|---|
| Description | ProductGrid, BestSellers, or Product actions |