Home > @vue-storefront/core > useCategoryFactory
useCategoryFactory() function
Signature:
export declare function useCategoryFactory<CATEGORY, CATEGORY_SEARCH_PARAMS, API extends PlatformApi = any>(factoryParams: UseCategoryFactoryParams<CATEGORY, CATEGORY_SEARCH_PARAMS, API>): (id: string) => UseCategory<CATEGORY, CATEGORY_SEARCH_PARAMS, API>;
Parameters
Parameter | Type | Description |
---|---|---|
factoryParams | UseCategoryFactoryParams<CATEGORY, CATEGORY_SEARCH_PARAMS, API> |
Returns:
(id: string) => UseCategory<CATEGORY, CATEGORY_SEARCH_PARAMS, API>