MockDaffOperationStateFacade

Can be used to mock out the DaffOperationStateFacade in testing environments.

Properties

Name Type Description
loadingState$ BehaviorSubject<DaffState> The loading state enum.
loading$ BehaviorSubject<boolean> Whether the operation state is in any of the loading states.
resolving$ BehaviorSubject<boolean> Whether the operation state is resolving.
mutating$ BehaviorSubject<boolean> Whether the operation state is mutating.
errors$ BehaviorSubject<DaffStateError[]> The errors in the operation state.
hasErrors$ BehaviorSubject<boolean> Whether the operation state has any errors. If so, it should be considered to be in an "error" state.
dispatch
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.