GitHub

daffUpsellProductsDedupeMetaReducer

A meta reducer that dedupes nested upsell products. Invokes the passed reducer with a new DaffProductPageLoadSuccess that contains a payload missing the upsell products.

import { daffUpsellProductsDedupeMetaReducer } from '@daffodil/upsell-products/state'
function daffUpsellProductsDedupeMetaReducer<T = Record<string, any>>(reducer: ActionReducer<T, DaffProductPageActions<DaffProduct>>): ActionReducer<T, DaffProductPageActions>