GitHub

daffCategoryReducer

Returns the state for category data except for category entities.

import { daffCategoryReducer } from '@daffodil/category/state'
function daffCategoryReducer<U extends DaffGenericCategory<U>, W extends DaffProduct>(
  state: DaffCategoryReducerState = daffCategoryInitialState
  action: DaffCategoryLoad | DaffCategoryLoadFailure | DaffCategoryLoadSuccess<U, W> | DaffCategoryPageLoad | ... 10 more ... | DaffCategoryPageChangeSortingOption
): DaffCategoryReducerState