• Overview
@angular/core

ResourceStatus

Type Alias

String value capturing the status of a Resource.

API

  
    type ResourceStatus = 'idle' | 'error' | 'loading' | 'reloading' | 'resolved' | 'local'
  
  

Description

String value capturing the status of a Resource.

Possible statuses are:

idle - The resource has no valid request and will not perform any loading. value() will be undefined.

loading - The resource is currently loading a new value as a result of a change in its reactive dependencies. value() will be undefined.

reloading - The resource is currently reloading a fresh value for the same reactive dependencies. value() will continue to return the previously fetched value during the reloading operation.

error - Loading failed with an error. value() will be undefined.

resolved - Loading has completed and the resource has the value returned from the loader.

local - The resource's value was set locally via .set() or .update().

Jump to details