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
}
Observable<DaffCartStoreCreditReducerState['daffState']>
Default | – |
---|---|
Description | The loading state enum. |
Observable<boolean>
Default | – |
---|---|
Description | Whether the operation state is in any of the loading states. |
Observable<boolean>
Default | – |
---|---|
Description | Whether the operation state is resolving. |
Observable<boolean>
Default | – |
---|---|
Description | Whether the operation state is mutating. |
Observable<DaffCartStoreCreditReducerState['daffErrors']>
Default | – |
---|---|
Description | The errors in the operation state. |
Observable<boolean>
Default | – |
---|---|
Description | Whether the operation state has any errors. If so, it should be considered to be in an "error" state. |
void
Parameter | action: Action |
---|---|
Description |