GitHub

DaffProductPageReviewsFacadeInterface

A facade for getting state about the reviews on a product page.

import { DaffProductPageReviewsFacadeInterface } from '@daffodil/reviews/state'
interface DaffProductPageReviewsFacadeInterface<T extends DaffProductReview = DaffProductReview> {
  loading$: Observable<boolean>
  errors$: Observable<DaffStateError[]>
  productReviews$: Observable<T[]>
}

Properties

Name Type Description
loading$ Observable<boolean>

Whether the product reviews are loading.

errors$ Observable<DaffStateError[]>

Product page review errors.

productReviews$ Observable<T[]>

The reviews for the current product page.