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

Home > @vue-storefront/core > useContentFactory

useContentFactory() function

Signature:

export declare function useContentFactory<CONTENT, CONTENT_SEARCH_PARAMS, API extends PlatformApi = any>(factoryParams: UseContentFactoryParams<CONTENT, CONTENT_SEARCH_PARAMS, API>): (id: string) => UseContent<CONTENT, CONTENT_SEARCH_PARAMS, API>;

Parameters

Parameter Type Description
factoryParams UseContentFactoryParams<CONTENT, CONTENT_SEARCH_PARAMS, API>

Returns:

(id: string) => UseContent<CONTENT, CONTENT_SEARCH_PARAMS, API>