Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

QueryResource.md

27 lines1005 Bytes

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