ProductActions

This is for:

Developer

The product action creators.

Loader Function

loadProductActions

Returns the possible product action creators.

Returns ProductActionCreators: The product action creators.

ProductActionCreators

productClick

Logs a click analytics event for a product.

Parameters

  • payload: Omit<Ec.ProductClick, 'currency'>

    The action creator payload.

Returns AsyncThunkAction<void, ProductClickPayload, AsyncThunkCommerceOptions<CommerceEngineState>>: A dispatchable action.

productView

Logs a view analytics event for a product.

Parameters

  • payload: Product

    The action creator payload.

Returns AsyncThunkAction<void, ProductViewPayload, AsyncThunkCommerceOptions<CommerceEngineState>>: A dispatchable action.