Defined in: packages/query-core/src/types.ts:1130
TData = unknown
TError = DefaultError
data: TData;Defined in: packages/query-core/src/types.ts:1134
The last successfully resolved data for the query.
InfiniteQueryObserverBaseResult.data
dataUpdatedAt: number;Defined in: packages/query-core/src/types.ts:775
The timestamp for when the query most recently returned the status as "success".
InfiniteQueryObserverBaseResult.dataUpdatedAt
error: null;Defined in: packages/query-core/src/types.ts:1136
The error object for the query, if an error was thrown.
InfiniteQueryObserverBaseResult.error
errorUpdateCount: number;Defined in: packages/query-core/src/types.ts:799
The sum of all errors.
InfiniteQueryObserverBaseResult.errorUpdateCount
errorUpdatedAt: number;Defined in: packages/query-core/src/types.ts:784
The timestamp for when the query most recently returned the status as "error".
InfiniteQueryObserverBaseResult.errorUpdatedAt
failureCount: number;Defined in: packages/query-core/src/types.ts:790
The failure count for the query.
InfiniteQueryObserverBaseResult.failureCount
failureReason: TError | null;Defined in: packages/query-core/src/types.ts:795
The failure reason for the query retry.
InfiniteQueryObserverBaseResult.failureReason
fetchNextPage: (options?) => Promise<InfiniteQueryObserverResult<TData, TError>>;Defined in: packages/query-core/src/types.ts:1008
This function allows you to fetch the next "page" of results.
Promise<InfiniteQueryObserverResult<TData, TError>>
InfiniteQueryObserverBaseResult.fetchNextPage
fetchPreviousPage: (options?) => Promise<InfiniteQueryObserverResult<TData, TError>>;Defined in: packages/query-core/src/types.ts:1014
This function allows you to fetch the previous "page" of results.
Promise<InfiniteQueryObserverResult<TData, TError>>
InfiniteQueryObserverBaseResult.fetchPreviousPage
fetchStatus: FetchStatus;Defined in: packages/query-core/src/types.ts:889
The fetch status of the query.
InfiniteQueryObserverBaseResult.fetchStatus
hasNextPage: boolean;Defined in: packages/query-core/src/types.ts:1020
Will be true if there is a next page to be fetched (known via the getNextPageParam option).
InfiniteQueryObserverBaseResult.hasNextPage
hasPreviousPage: boolean;Defined in: packages/query-core/src/types.ts:1024
Will be true if there is a previous page to be fetched (known via the getPreviousPageParam option).
InfiniteQueryObserverBaseResult.hasPreviousPage
isEnabled: boolean;Defined in: packages/query-core/src/types.ts:867
true if this observer is enabled, false otherwise.
InfiniteQueryObserverBaseResult.isEnabled
isError: false;Defined in: packages/query-core/src/types.ts:1135
A derived boolean from the status variable, provided for convenience.
InfiniteQueryObserverBaseResult.isError
isFetched: boolean;Defined in: packages/query-core/src/types.ts:808
Will be true if the query has been fetched.
InfiniteQueryObserverBaseResult.isFetched
isFetchedAfterMount: boolean;Defined in: packages/query-core/src/types.ts:813
Will be true if the query has been fetched after the component mounted.
InfiniteQueryObserverBaseResult.isFetchedAfterMount
isFetching: boolean;Defined in: packages/query-core/src/types.ts:818
A derived boolean from the fetchStatus variable, provided for convenience.
InfiniteQueryObserverBaseResult.isFetching
isFetchingNextPage: boolean;Defined in: packages/query-core/src/types.ts:1032
Will be true while fetching the next page with fetchNextPage.
InfiniteQueryObserverBaseResult.isFetchingNextPage
isFetchingPreviousPage: boolean;Defined in: packages/query-core/src/types.ts:1040
Will be true while fetching the previous page with fetchPreviousPage.
InfiniteQueryObserverBaseResult.isFetchingPreviousPage
isFetchNextPageError: false;Defined in: packages/query-core/src/types.ts:1143
Will be true if the query failed while fetching the next page.
InfiniteQueryObserverBaseResult.isFetchNextPageError
isFetchPreviousPageError: false;Defined in: packages/query-core/src/types.ts:1144
Will be true if the query failed while fetching the previous page.
InfiniteQueryObserverBaseResult.isFetchPreviousPageError
isInitialLoading: boolean;Defined in: packages/query-core/src/types.ts:836
isInitialLoading is being deprecated in favor of isLoading and will be removed in the next major version.
InfiniteQueryObserverBaseResult.isInitialLoading
isLoading: false;Defined in: packages/query-core/src/types.ts:1138
Is true whenever the first fetch for a query is in-flight.
InfiniteQueryObserverBaseResult.isLoading
isLoadingError: false;Defined in: packages/query-core/src/types.ts:1139
Will be true if the query failed while fetching for the first time.
InfiniteQueryObserverBaseResult.isLoadingError
isPaused: boolean;Defined in: packages/query-core/src/types.ts:841
A derived boolean from the fetchStatus variable, provided for convenience.
InfiniteQueryObserverBaseResult.isPaused
isPending: false;Defined in: packages/query-core/src/types.ts:1137
Will be pending if there's no cached data and no query attempt was finished yet.
InfiniteQueryObserverBaseResult.isPending
isPlaceholderData: true;Defined in: packages/query-core/src/types.ts:1142
Will be true if the data shown is the placeholder data.
InfiniteQueryObserverBaseResult.isPlaceholderData
isRefetchError: false;Defined in: packages/query-core/src/types.ts:1140
Will be true if the query failed while refetching.
InfiniteQueryObserverBaseResult.isRefetchError
isRefetching: boolean;Defined in: packages/query-core/src/types.ts:854
Is true whenever a background refetch is in-flight, which does not include initial pending.
InfiniteQueryObserverBaseResult.isRefetching
isStale: boolean;Defined in: packages/query-core/src/types.ts:858
Will be true if the data in the cache is invalidated or if the data is older than the given staleTime.
InfiniteQueryObserverBaseResult.isStale
isSuccess: true;Defined in: packages/query-core/src/types.ts:1141
A derived boolean from the status variable, provided for convenience.
InfiniteQueryObserverBaseResult.isSuccess
refetch: (options?) => Promise<QueryObserverResult<TData, TError>>;Defined in: packages/query-core/src/types.ts:871
A function to manually refetch the query.
Promise<QueryObserverResult<TData, TError>>
InfiniteQueryObserverBaseResult.refetch
status: "success";Defined in: packages/query-core/src/types.ts:1145
The status of the query.