katanakit-js / InfiniteQueryObserverBaseResult
Interface: InfiniteQueryObserverBaseResult<TData, TError>
Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2419
Extends
QueryObserverBaseResult<TData,TError>
Extended by
InfiniteQueryObserverLoadingErrorResultInfiniteQueryObserverLoadingResultInfiniteQueryObserverPendingResultInfiniteQueryObserverPlaceholderResultInfiniteQueryObserverRefetchErrorResultInfiniteQueryObserverSuccessResult
Type Parameters
| Type Parameter | Default type |
|---|---|
TData | unknown |
TError | DefaultError |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
data | TData | undefined | The last successfully resolved data for the query. | QueryObserverBaseResult.data | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2228 |
dataUpdatedAt | number | The timestamp for when the query most recently returned the status as "success". | QueryObserverBaseResult.dataUpdatedAt | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2232 |
error | TError | null | The error object for the query, if an error was thrown. - Defaults to null. | QueryObserverBaseResult.error | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2237 |
errorUpdateCount | number | The sum of all errors. | QueryObserverBaseResult.errorUpdateCount | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2256 |
errorUpdatedAt | number | The timestamp for when the query most recently returned the status as "error". | QueryObserverBaseResult.errorUpdatedAt | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2241 |
failureCount | number | The failure count for the query. - Incremented every time the query fails. - Reset to 0 when the query succeeds. | QueryObserverBaseResult.failureCount | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2247 |
failureReason | TError | null | The failure reason for the query retry. - Reset to null when the query succeeds. | QueryObserverBaseResult.failureReason | node_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. | - | node_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. | - | node_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. | QueryObserverBaseResult.fetchStatus | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2344 |
hasNextPage | boolean | Will be true if there is a next page to be fetched (known via the getNextPageParam option). | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2431 |
hasPreviousPage | boolean | Will be true if there is a previous page to be fetched (known via the getPreviousPageParam option). | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2435 |
isEnabled | boolean | true if this observer is enabled, false otherwise. | QueryObserverBaseResult.isEnabled | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2324 |
isError | boolean | A derived boolean from the status variable, provided for convenience. - true if the query attempt resulted in an error. | QueryObserverBaseResult.isError | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2261 |
isFetched | boolean | Will be true if the query has been fetched. | QueryObserverBaseResult.isFetched | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2265 |
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. | QueryObserverBaseResult.isFetchedAfterMount | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2270 |
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. | QueryObserverBaseResult.isFetching | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2275 |
isFetchingNextPage | boolean | Will be true while fetching the next page with fetchNextPage. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2443 |
isFetchingPreviousPage | boolean | Will be true while fetching the previous page with fetchPreviousPage. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2451 |
isFetchNextPageError | boolean | Will be true if the query failed while fetching the next page. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2439 |
isFetchPreviousPageError | boolean | Will be true if the query failed while fetching the previous page. | - | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2447 |
isLoading | boolean | Is true whenever the first fetch for a query is in-flight. - Is the same as isFetching && isPending. | QueryObserverBaseResult.isLoading | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2280 |
isLoadingError | boolean | Will be true if the query failed while fetching for the first time. | QueryObserverBaseResult.isLoadingError | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2288 |
isPaused | boolean | A derived boolean from the fetchStatus variable, provided for convenience. - The query wanted to fetch, but has been paused. | QueryObserverBaseResult.isPaused | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2298 |
isPending | boolean | Will be pending if there's no cached data and no query attempt was finished yet. | QueryObserverBaseResult.isPending | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2284 |
isPlaceholderData | boolean | Will be true if the data shown is the placeholder data. | QueryObserverBaseResult.isPlaceholderData | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2302 |
isRefetchError | boolean | Will be true if the query failed while refetching. | QueryObserverBaseResult.isRefetchError | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2306 |
isRefetching | boolean | Is true whenever a background refetch is in-flight, which does not include initial pending. - Is the same as isFetching && !isPending. | QueryObserverBaseResult.isRefetching | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2311 |
isStale | boolean | Will be true if the data in the cache is invalidated or if the data is older than the given staleTime. | QueryObserverBaseResult.isStale | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2315 |
isSuccess | boolean | 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. | QueryObserverBaseResult.isSuccess | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2320 |
refetch | (options?) => Promise<QueryObserverResult<TData, TError>> | A function to manually refetch the query. | QueryObserverBaseResult.refetch | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2328 |
status | "error" | "success" | "pending" | 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. | QueryObserverBaseResult.status | node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2336 |