0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
query/docs/framework/angular/reference/interfaces/QueryObserverRefetchErrorResult.md
Wonsuk Choi f38e6271b4
chore(*): update '@tanstack/typedoc-config' to v0.3.5 (#12035)
* chore(scripts/generate-docs): read type alias bodies whose type parameters have defaults

* chore(*): update '@tanstack/typedoc-config' to v0.3.5
2026-10-17 11:14:03 +09:00

5.9 KiB

id title
QueryObserverRefetchErrorResult QueryObserverRefetchErrorResult

Defined in: packages/query-core/src/types.ts:1236

A query result in the error state when a refetch failed, so the data from before is kept.

Extends

Type Parameters

TData

TData = unknown

TError

TError = DefaultError

Properties

Property Type Description Overrides
data TData The data from before the failed refetch, which is kept. QueryObserverBaseResult.data
dataUpdatedAt number The timestamp for when the query most recently returned the status as "success". -
error TError The error the refetch failed with. 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 true, since the query is in the error state. QueryObserverBaseResult.isError
isFetched boolean Will be true if the query has been fetched. -
isFetchedAfterMount boolean Will be true if the query has been fetched after the component mounted. - This property can be used to not show any previously cached data. -
isFetching boolean A derived boolean from the fetchStatus variable, provided for convenience. - true whenever the queryFn is executing, which includes initial pending as well as background refetch. -
isInitialLoading boolean Deprecated isInitialLoading is being deprecated in favor of isLoading and will be removed in the next major version. -
isLoading false false, since the first fetch isn't in flight. QueryObserverBaseResult.isLoading
isLoadingError false false, since the query didn't fail while fetching for the first time. QueryObserverBaseResult.isLoadingError
isPaused boolean A derived boolean from the fetchStatus variable, provided for convenience. - The query wanted to fetch, but has been paused. -
isPending false false, since the query has data or a query attempt has finished. QueryObserverBaseResult.isPending
isPlaceholderData false false, since the data shown isn't the placeholderData. QueryObserverBaseResult.isPlaceholderData
isRefetchError true true, since the query failed while refetching. QueryObserverBaseResult.isRefetchError
isRefetching boolean Is true whenever a background refetch is in-flight, which does not include initial pending. - Is the same as isFetching && !isPending. -
isStale boolean Will be true if the data in the cache is invalidated or if the data is older than the given staleTime. -
isSuccess false false, since the query isn't in the success state. QueryObserverBaseResult.isSuccess
refetch (options?: RefetchOptions) => Promise<QueryObserverResult<TData, TError>> A function to manually refetch the query. -
status "error" 'error', since the query attempt resulted in an error. QueryObserverBaseResult.status