Home > @vsf-enterprise/bigcommerce-theme > UseProductInterface
# UseProductInterface interface
Data and methods returned from the useProduct() composable
Signature:
export interface UseProductInterface
# Properties
Property | Type | Description |
---|---|---|
error | Ref<UseProductErrors> | Contains errors from the composable methods. |
filter | (params: GetProductsWithFilterParameters) => Promise<ProductsResponse> | Filters products. |
loading | Ref<boolean> | Indicates whether any of the methods is in progress. |
search | (params: GetProductsParameters) => Promise<ProductsResponse> | Searches for products. |