Class ILoadingStateAbstract

The base loading state

Hierarchy (view full)

Implements

  • Subscribable<boolean>

Constructors

Properties

error$: Observable<Error>

Emits an error if one occurs

failed$: Observable<boolean>

Indicates if the actions has failed

isAsync: boolean

Indicates if the action was async or not

loading: boolean

Indicates the loading state of the command

loading$: Observable<boolean>

Indicates the loading state of the command

Methods

  • Define a callback that will be executed when the action has completed (Whether it failed or succeeded)

    Parameters

    • func: (() => void)
        • (): void
        • Returns void

    Returns this

  • Define a callback that will be executed on a successful action

    Parameters

    • next: (() => void)
        • (): void
        • Returns void

    • Optionalerror: ((error: Error) => void)
        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns this