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