Defined in: packages/query-core/src/types.ts:1096
InfiniteQueryObserverBaseResult<TData, TError>
TData = unknown
TError = DefaultError
data: TData;Defined in: packages/query-core/src/types.ts:1100
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: TError;Defined in: packages/query-core/src/types.ts:1101
The error object for the query, if an error was thrown.
Defaults to null.
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.
Incremented every time the query fails.
Reset to 0 when the query succeeds.
InfiniteQueryObserverBaseResult.failureCount
failureReason: TError | null;Defined in: packages/query-core/src/types.ts:795
The failure reason for the query retry.
Reset to null when the query succeeds.
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.
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.
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: true;Defined in: packages/query-core/src/types.ts:1102
A derived boolean from the status variable, provided for convenience.
true if the query attempt resulted in an error.
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.
This property can be used to not show any previously cached data.
InfiniteQueryObserverBaseResult.isFetchedAfterMount
isFetching: boolean;Defined in: packages/query-core/src/types.ts:818
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.
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: boolean;Defined in: packages/query-core/src/types.ts:1028
Will be true if the query failed while fetching the next page.
InfiniteQueryObserverBaseResult.isFetchNextPageError
isFetchPreviousPageError: boolean;Defined in: packages/query-core/src/types.ts:1036
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:1104
Is true whenever the first fetch for a query is in-flight.
Is the same as isFetching && isPending.
InfiniteQueryObserverBaseResult.isLoading
isLoadingError: false;Defined in: packages/query-core/src/types.ts:1105
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.
The query wanted to fetch, but has been paused.
InfiniteQueryObserverBaseResult.isPaused
isPending: false;Defined in: packages/query-core/src/types.ts:1103
Will be pending if there's no cached data and no query attempt was finished yet.
InfiniteQueryObserverBaseResult.isPending
isPlaceholderData: false;Defined in: packages/query-core/src/types.ts:1108
Will be true if the data shown is the placeholder data.
InfiniteQueryObserverBaseResult.isPlaceholderData
isRefetchError: true;Defined in: packages/query-core/src/types.ts:1106
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.
Is the same as isFetching && !isPending.
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: false;Defined in: packages/query-core/src/types.ts:1107
A derived boolean from the status variable, provided for convenience.
true if the query has received a response with no errors and is ready to display its data.
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: "error";Defined in: packages/query-core/src/types.ts:1109
The status of the query.
Will be: