Class QueryState<T>
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
An entry's state as GetQueryState<T>(QueryKey) reads it, a snapshot that does not follow
the entry: TanStack Query's QueryState.
public sealed class QueryState<T>
Type Parameters
TThe entry's data type.
- Inheritance
-
objectQueryState<T>
Properties
- Data
The entry's data; default while it holds none.
- DataUpdatedAt
When the entry's data landed, on the client's clock; zero while it holds none.
- FailureCount
How many times the request in flight or the last one has failed.
- FailureReason
The exception of the latest failure of the request in flight or the last one; null once a request lands.
- HasData
Whether the entry holds data.
- IsFetching
Whether a request for the entry is in flight.
- IsInvalidated
Whether the entry was invalidated, or its last request failed, since its data landed.
- Status
Whether the entry has data; see QueryStatus.