Home > @vsf-enterprise/bigcommerce-theme > UseReviewInterface
# UseReviewInterface interface
Data and methods returned from the useReview() composable
Signature:
export interface UseReviewInterface
# Properties
Property | Type | Description |
---|---|---|
add | (params: CreateProductReviewProps) => Promise<ProductReviewResponse> | Adds a review to a product. |
error | Ref<UseReviewErrors> | Contains errors from the composable methods. |
loading | Ref<boolean> | Indicates whether any of the methods is in progress. |
search | (params: UseReviewSearchParameters) => Promise<ProductReviewCollectionResponse> | Searches for reviews for a product. |