@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 641 B
JavaScript
import{logDeprecationMessage}from'@shopgate/pwa-core/helpers';import fetchCategoryOrRootCategories from"./fetchCategoryOrRootCategories";/**
* Deprecation fallback for the fetchCategoryOrRootCategories action
* @deprecated
* @param {string} categoryId The category ID.
* @return {Function} The dispatched action.
*/var getCategory=function getCategory(categoryId){logDeprecationMessage('The fetch action getCategory will be removed in future versions due naming conflict with getCategory selector. Please use fetchCategoryOrRootCategories as a replacement');return fetchCategoryOrRootCategories(categoryId);};export default getCategory;