Skip to content
0

katanakit-js / InfiniteQueryObserverSuccessResult

Interface: InfiniteQueryObserverSuccessResult<TData, TError> ​

Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2506

Extends ​

Type Parameters ​

Type ParameterDefault type
TDataunknown
TErrorDefaultError

Properties ​

PropertyTypeDescriptionOverridesInherited fromDefined in
dataTDataThe last successfully resolved data for the query.InfiniteQueryObserverBaseResult.data-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2507
dataUpdatedAtnumberThe timestamp for when the query most recently returned the status as "success".-InfiniteQueryObserverBaseResult.dataUpdatedAtnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2232
errornullThe error object for the query, if an error was thrown. - Defaults to null.InfiniteQueryObserverBaseResult.error-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2508
errorUpdateCountnumberThe sum of all errors.-InfiniteQueryObserverBaseResult.errorUpdateCountnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2256
errorUpdatedAtnumberThe timestamp for when the query most recently returned the status as "error".-InfiniteQueryObserverBaseResult.errorUpdatedAtnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2241
failureCountnumberThe failure count for the query. - Incremented every time the query fails. - Reset to 0 when the query succeeds.-InfiniteQueryObserverBaseResult.failureCountnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2247
failureReasonTError | nullThe failure reason for the query retry. - Reset to null when the query succeeds.-InfiniteQueryObserverBaseResult.failureReasonnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2252
fetchNextPage(options?) => Promise<InfiniteQueryObserverResult<TData, TError>>This function allows you to fetch the next "page" of results.-InfiniteQueryObserverBaseResult.fetchNextPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2423
fetchPreviousPage(options?) => Promise<InfiniteQueryObserverResult<TData, TError>>This function allows you to fetch the previous "page" of results.-InfiniteQueryObserverBaseResult.fetchPreviousPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2427
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.-InfiniteQueryObserverBaseResult.fetchStatusnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2344
hasNextPagebooleanWill be true if there is a next page to be fetched (known via the getNextPageParam option).-InfiniteQueryObserverBaseResult.hasNextPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2431
hasPreviousPagebooleanWill be true if there is a previous page to be fetched (known via the getPreviousPageParam option).-InfiniteQueryObserverBaseResult.hasPreviousPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2435
isEnabledbooleantrue if this observer is enabled, false otherwise.-InfiniteQueryObserverBaseResult.isEnablednode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2324
isErrorfalseA derived boolean from the status variable, provided for convenience. - true if the query attempt resulted in an error.InfiniteQueryObserverBaseResult.isError-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2509
isFetchedbooleanWill be true if the query has been fetched.-InfiniteQueryObserverBaseResult.isFetchednode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2265
isFetchedAfterMountbooleanWill 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.isFetchedAfterMountnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2270
isFetchingbooleanA 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.isFetchingnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2275
isFetchingNextPagebooleanWill be true while fetching the next page with fetchNextPage.-InfiniteQueryObserverBaseResult.isFetchingNextPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2443
isFetchingPreviousPagebooleanWill be true while fetching the previous page with fetchPreviousPage.-InfiniteQueryObserverBaseResult.isFetchingPreviousPagenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2451
isFetchNextPageErrorfalseWill be true if the query failed while fetching the next page.InfiniteQueryObserverBaseResult.isFetchNextPageError-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2514
isFetchPreviousPageErrorfalseWill be true if the query failed while fetching the previous page.InfiniteQueryObserverBaseResult.isFetchPreviousPageError-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2515
isLoadingfalseIs true whenever the first fetch for a query is in-flight. - Is the same as isFetching && isPending.InfiniteQueryObserverBaseResult.isLoading-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2511
isLoadingErrorfalseWill be true if the query failed while fetching for the first time.InfiniteQueryObserverBaseResult.isLoadingError-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2512
isPausedbooleanA derived boolean from the fetchStatus variable, provided for convenience. - The query wanted to fetch, but has been paused.-InfiniteQueryObserverBaseResult.isPausednode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2298
isPendingfalseWill be pending if there's no cached data and no query attempt was finished yet.InfiniteQueryObserverBaseResult.isPending-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2510
isPlaceholderDatafalseWill be true if the data shown is the placeholder data.InfiniteQueryObserverBaseResult.isPlaceholderData-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2517
isRefetchErrorfalseWill be true if the query failed while refetching.InfiniteQueryObserverBaseResult.isRefetchError-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2513
isRefetchingbooleanIs true whenever a background refetch is in-flight, which does not include initial pending. - Is the same as isFetching && !isPending.-InfiniteQueryObserverBaseResult.isRefetchingnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2311
isStalebooleanWill be true if the data in the cache is invalidated or if the data is older than the given staleTime.-InfiniteQueryObserverBaseResult.isStalenode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2315
isSuccesstrueA 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-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2516
refetch(options?) => Promise<QueryObserverResult<TData, TError>>A function to manually refetch the query.-InfiniteQueryObserverBaseResult.refetchnode_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2328
status"success"The status of the query. - Will be: - pending if there's no cached data and no query attempt was finished yet. - error if the query attempt resulted in an error. - success if the query has received a response with no errors and is ready to display its data.InfiniteQueryObserverBaseResult.status-node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2518

Released under the MIT License.