GitHub

daffProductReducer

function

import { daffProductReducer } from '@daffodil/product/state'

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

Parameters

Parameterstate: DaffProductReducerState
DefaultdaffProductReducerInitialState
Description

current State of the redux store

Parameteraction: DaffProductPageActions
Description

a product action