UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

5 lines 423 B
import{REQUEST_PRODUCT_VARIANTS}from"../constants";/** * Dispatches the REQUEST_PRODUCT_VARIANTS action. * @param {string} productId The ID of the product for which the variants are requested. * @return {Object} The REQUEST_PRODUCT_VARIANTS action. */var requestProductVariants=function requestProductVariants(productId){return{type:REQUEST_PRODUCT_VARIANTS,productId:productId};};export default requestProductVariants;