import { daffRelatedProductsReducer } from '@daffodil/related-products/state'
Reducer function that catches actions and changes/overwrites related product state.
function daffRelatedProductsReducer<T extends DaffProduct>(
state: DaffRelatedProductsReducerState = initialState
action: DaffProductPageActions<T>
): DaffRelatedProductsReducerState
| Parameter | state: DaffRelatedProductsReducerState |
|---|---|
| Default | initialState |
| Description |
| Parameter | action: DaffProductPageActions |
|---|---|
| Description |