Home > @vsf-enterprise/sapcc > UseReviewComposable

UseReviewComposable interface

Composable method allowing to fetch and add product reviews.

Signature:

export interface UseReviewComposable 

Properties

Property Type Description
add (props: AddReviewProps) => Promise<Review> A method for adding a product review.
error ComputedProperty<UseReviewError> An indicator of useReview composable methods errors.
load (props: LoadReviewsProps) => Promise<void> A method for loading product reviews.
loading ComputedProperty<UseReviewLoading> An indicator of useReview composable methods progress.
reviews ComputedProperty<Review[]> An array of product reviews.