import { daffProductGridReducer } from '@daffodil/product/state'
Reducer function that catches actions and changes/overwrites product grid state.
function daffProductGridReducer<T extends DaffProduct>(
state: DaffProductGridReducerState<any> = initialState
action: DaffProductGridActions<T>
): DaffProductGridReducerState<T>
Parameter | state: DaffProductGridReducerState |
---|---|
Default | initialState |
Description | current State of the redux store |
Parameter | action: DaffProductGridActions |
---|---|
Description | a product grid action |