GitHub

daffProductGridReducer

Reducer function that catches actions and changes/overwrites product grid state.

import { daffProductGridReducer } from '@daffodil/product/state'
function daffProductGridReducer<T extends DaffProduct>(
  state: DaffProductGridReducerState<any> = initialState
  action: DaffProductGridActions<T>
): DaffProductGridReducerState<T>