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>