Home > @vsf-enterprise/sapcc > searchGetters

searchGetters variable

Returns agnostic search values.

Signature:

searchGetters: UseSearchGetters<ProductSearchPageData, Product>

Example

Example of usage:

const { search, result, loading, error } = useSearch('category-page');
await search({
  categoryId: '106',
  categorySlug: 'Brand,
   page: 0,
   sort: 'relevance',
   filters: {},
   itemsPerPage: 20,
   term: undefined
});
productGetters.getCategoryTree(result.value) // should return agnostic category tree