GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Signal
  • ResourceStatus
  • ResourceSnapshot

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — Resource • Angular

API

    
      interface Resource<T> {
}

The current value of the Resource, or throws an error if the resource is in an error state.

The current status of the Resource, which describes what the resource is currently doing and what can be expected of its value.

When in the error state, this returns the last known error from the Resource.

Whether this resource is loading a new value (or reloading the existing one).

The current state of this resource, represented as a ResourceSnapshot.

Whether this resource has a valid current value.

This function is reactive.

@paramthisT extends undefined ? this : never
@returnsthis is Resource<Exclude<T, undefined>>
@returnsboolean

Description

A Resource is an asynchronous dependency (for example, the results of an API call) that is managed and delivered through signals.

The usual way of creating a Resource is through the resource function, but various other APIs may present Resource instances to describe their own concepts.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.