Home > @vsf-enterprise/bigcommerce-theme > UseCategoryInterface
# UseCategoryInterface interface
Data and methods returned from the useCategory() composable
Signature:
export interface UseCategoryInterface
# Properties
Property | Type | Description |
---|---|---|
error | Ref<UseCategoryError> | Contains errors from the composable methods. |
loading | Ref<boolean> | Indicates whether any of the methods is in progress. |
# Methods
Method | Description |
---|---|
buildBreadcrumbs(categoryId) | Builds breadcrumbs. |
buildSearchCategories(products) | Builds the list of search categories. |
fetchCategory(params) | Fetches category details. |
loadCategoryTreeList() | Loads the category treee. |