TanStack
API Reference

QueryResource

Defined in: packages/angular-query/src/query-resource.ts:9

A query-backed Angular Resource that also exposes an atomic state snapshot.

Extends

  • Resource<TValue>

Type Parameters

TValue

TValue

Properties

PropertyModifierTypeDescriptionOverrides
reloadpublic() => booleanRequests a new query fetch only when the current query data is stale. Used for compatibility with Angular APIs that might want to reload a resource, like Signal Forms' validateAsync resource interface.-
snapshotreadonlySignal<ResourceSnapshot<TValue>>The current query state as a single snapshot.Resource.snapshot