Home > @shopware-pwa/composables > IUseProductReviews
# IUseProductReviews interface
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
interface for useProductReviews() composable
Signature:
export interface IUseProductReviews
# Properties
Property | Type | Description |
---|---|---|
addReview | (data: { title: string; content: string; points: number; }) => Promise<void> | (BETA) |
errors | UnwrapRef<{ loadProductReviews: ShopwareError[]; addReview: ShopwareError[]; }> | (BETA) |
isSendingReview | Ref<boolean> | (BETA) |
loadProductReviews | (parameters?: ShopwareSearchParams) => Promise<void> | (BETA) |
productReviews | Ref<UiProductReview[] | null> | (BETA) |
wasReviewSent | Ref<boolean> | (BETA) |