You are reading the documentation for Vue Storefront v2. See the latest docs.

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>