Like resource
but uses an RxJS based loader
which maps the request to an Observable
of the
resource's value. Like firstValueFrom
, only the first emission of the Observable is considered.
API
function rxResource<T, R>( opts: RxResourceOptions<T, R>): ResourceRef<T>;
Jump to details