Status of a Resource
.
API
enum ResourceStatus {}
Idle
The resource has no valid request and will not perform any loading.
value()
will be undefined
.
Error
Loading failed with an error.
value()
will be undefined
.
Loading
The resource is currently loading a new value as a result of a change in its request
.
value()
will be undefined
.
Reloading
The resource is currently reloading a fresh value for the same request.
value()
will continue to return the previously fetched value during the reloading operation.
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