import { daffCategoryEntitiesReducer } from '@daffodil/category/state'
A reducer function to store category entities from DaffCategoryLoadSuccess and DaffCategoryPageLoadSuccess actions.
function daffCategoryEntitiesReducer<V extends DaffGenericCategory<V> = DaffCategory, W extends DaffProduct = DaffProduct>(
state: EntityState<V> = daffCategoryEntitiesAdapter<V>().getInitialState()
action: DaffCategoryLoad | DaffCategoryLoadFailure | DaffCategoryPageLoad | DaffCategoryPageLoadByUrl | DaffCategoryPageLoadFailure | DaffCategoryLoadSuccess<...> | DaffCategoryPageLoadSuccess<...>
): EntityState<V>
| Parameter | state: EntityState |
|---|---|
| Default | daffCategoryEntitiesAdapter<V>().getInitialState() |
| Description |
| Parameter | action: DaffCategoryLoad | DaffCategoryLoadFailure | DaffCategoryPageLoad | DaffCategoryPageLoadByUrl | DaffCategoryPageLoadFailure | DaffCategoryLoadSuccess<...> | DaffCategoryPageLoadSuccess<...> |
|---|---|
| Description |