Defined in: packages/query-core/src/types.ts:982
TData = unknown
TError = DefaultError
| Property | Type | Description | Overrides |
|---|---|---|---|
| data | undefined | The last successfully resolved data for the query. | QueryObserverBaseResult.data |
| dataUpdatedAt | number | The timestamp for when the query most recently returned the status as "success". | - |
| error | TError | The error object for the query, if an error was thrown. - Defaults to null. | QueryObserverBaseResult.error |
| errorUpdateCount | number | The sum of all errors. | - |
| errorUpdatedAt | number | The timestamp for when the query most recently returned the status as "error". | - |
| failureCount | number | The failure count for the query. - Incremented every time the query fails. - Reset to 0 when the query succeeds. | - |
| failureReason | TError | null | The failure reason for the query retry. - Reset to null when the query succeeds. | - |
| fetchStatus | "fetching" | "paused" | "idle" | The fetch status of the query. - fetching: Is true whenever the queryFn is executing, which includes initial pending as well as background refetch. - paused: The query wanted to fetch, but has been paused. - idle: The query is not fetching. - See Network Mode for more information. | - |
| isEnabled | boolean | true if this observer is enabled, false otherwise. | - |
| isError | true | A derived boolean from the status variable, provided for convenience. - true if the query attempt resulted in an error. | QueryObserverBaseResult |