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

Home > @vue-storefront/core > useSearchFactory

useSearchFactory() function

Signature:

export declare function useSearchFactory<RESULT, SEARCH_PARAMS>(factoryParams: UseSearchFactoryParams<RESULT, SEARCH_PARAMS>): (id: string) => UseSearch<RESULT, SEARCH_PARAMS>;

Parameters

Parameter Type Description
factoryParams UseSearchFactoryParams<RESULT, SEARCH_PARAMS>

Returns:

(id: string) => UseSearch<RESULT, SEARCH_PARAMS>