GitHub

DaffCartStoreCreditPageFacade

import { DaffCartStoreCreditPageFacade } from '@daffodil/cart-store-credit/state'

@Injectable()
class DaffCartStoreCreditPageFacade implements DaffCartStoreCreditPageFacadeInterface {
  loadingState$: Observable<DaffCartStoreCreditReducerState['daffState']>
  loading$: Observable<boolean>
  resolving$: Observable<boolean>
  mutating$: Observable<boolean>
  errors$: Observable<DaffCartStoreCreditReducerState['daffErrors']>
  hasErrors$: Observable<boolean>

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

Properties

loadingState$
Observable<DaffCartStoreCreditReducerState['daffState']>
Default
Description

The loading state enum.

loading$
Observable<boolean>
Default
Description

Whether the operation state is in any of the loading states.

resolving$
Observable<boolean>
Default
Description

Whether the operation state is resolving.

mutating$
Observable<boolean>
Default
Description

Whether the operation state is mutating.

errors$
Observable<DaffCartStoreCreditReducerState['daffErrors']>
Default
Description

The errors in the operation state.

hasErrors$
Observable<boolean>
Default
Description

Whether the operation state has any errors. If so, it should be considered to be in an "error" state.

() Methods

dispatch
void
Parameters
Parameteraction: Action
Description