@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
5 lines • 354 B
JavaScript
import{REQUEST_CATEGORY}from"../constants";/**
* Dispatches the REQUEST_CATEGORY action.
* @param {string} categoryId The ID of the category to be requested.
* @return {Object} The REQUEST_CATEGORY action.
*/var requestCategory=function requestCategory(categoryId){return{type:REQUEST_CATEGORY,categoryId:categoryId};};export default requestCategory;