import { daffCategoryReducer } from '@daffodil/category/state'
Returns the state for category data except for category entities.
function daffCategoryReducer<U extends DaffGenericCategory<U>, W extends DaffProduct>(
state: DaffCategoryReducerState = daffCategoryInitialState
action: DaffCategoryLoad | DaffCategoryLoadFailure | DaffCategoryLoadSuccess<U, W> | DaffCategoryPageLoad | ... 10 more ... | DaffCategoryPageChangeSortingOption
): DaffCategoryReducerState
Parameter | state: DaffCategoryReducerState |
---|---|
Default | daffCategoryInitialState |
Description |
Parameter | action: DaffCategoryLoad | DaffCategoryLoadFailure | DaffCategoryLoadSuccess | DaffCategoryPageLoad | ... 10 more ... | DaffCategoryPageChangeSortingOption |
---|---|
Description |