[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/ResourceStatus [Back]  [Original]

ResourceStatus Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

ResourceStatus

Type Alias
stablesince v22.0

String value capturing the status of a Resource.

On this page

    arrow_upward_alt Back to the top

    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. Reading value() will throw; use hasValue() or error() to check first.

    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

    Web Proxy Viewer  |  New URL  |  Original Page