GitHub

DaffProductPageReviewsFacade

import { DaffProductPageReviewsFacade } from '@daffodil/reviews/state'

@Injectable()
class DaffProductPageReviewsFacade<<T extends DaffProductReview = DaffProductReview>>  implements DaffProductPageReviewsFacadeInterface {
  loading$: Observable<boolean>
  errors$: Observable<DaffStateError[]>
  productReviews$: Observable<T[]>

  dispatch(action: Action<string>): void
}

Properties

loading$
Observable<boolean>
Default
Description

Whether the product reviews are loading.

errors$
Observable<DaffStateError[]>
Default
Description

Product page review errors.

productReviews$
Observable<T[]>
Default
Description

The reviews for the current product page.

() Methods

dispatch
void
Parameters
Parameteraction: Action
Description