daffCategoryEntitiesReducer
A reducer function to store category entities from DaffCategoryLoadSuccess and DaffCategoryPageLoadSuccess actions.
import { daffCategoryEntitiesReducer } from '@daffodil/category/state'
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>