GitHub

DaffProductPageReviewsFacade

class

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
Default –
Description

Whether the product reviews are loading.

errors$
Observable<DaffStateError[]>
Default –
Description

Product page review errors.

productReviews$
Observable
Default –
Description

The reviews for the current product page.

() Methods

dispatch
void
Parameters
Parameteraction: Action
Description