本页还没有译文
本页 13 段还没译成日本語,下面显示的是英文原文。InfiniteQueryObserverPendingResult
还没翻译译自英文(tanstack.com)本页 13 段都还没译
Defined in: packages/query-core/src/types.ts:1454
An infinite query result in the pending state: the query has no data yet.
Extends
InfiniteQueryObserverBaseResult<TData,TError>
Type Parameters
TData
TData = unknown
TError
TError = DefaultError
Properties
| Property | Type | Description | Overrides |
|---|---|---|---|
data | undefined | undefined, since the query has no data yet. | InfiniteQueryObserverBaseResult.data |
dataUpdatedAt | number | The timestamp for when the query most recently returned the status as "success". | - |
error | null | null, since the query isn't in the error state. | InfiniteQueryObserverBaseResult.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. | - |
fetchNextPage | (options?: FetchNextPageOptions) => Promise<InfiniteQueryObserverResult<TData, TError>> | This function allows you to fetch the next "page" of results. | - |
fetchPreviousPage | (options?: FetchPreviousPageOptions) => Promise<InfiniteQueryObserverResult<TData, TError>> | This function allows you to fetch the previous "page" of results. | - |
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. | - |
hasNextPage | boolean | Will be true if there is a next page to be fetched (known via the getNextPageParam option). | - |
hasPreviousPage | boolean | Will be true if there is a previous page to be fetched (known via the getPreviousPageParam option). | - |
isEnabled | boolean | true if this observer is enabled, false otherwise. | - |
isError | false | false, since the query isn't in the error state. | InfiniteQueryObserverBaseResult.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. | - |
isFetchingNextPage | boolean | Will be true while fetching the next page with fetchNextPage. | - |
isFetchingPreviousPage | boolean | Will be true while fetching the previous page with fetchPreviousPage. | - |
isFetchNextPageError | false | false, since fetching the next page didn't fail. | InfiniteQueryObserverBaseResult.isFetchNextPageError |
isFetchPreviousPageError | false | false, since fetching the previous page didn't fail. | InfiniteQueryObserverBaseResult.isFetchPreviousPageError |
isInitialLoading | boolean | Deprecated isInitialLoading is being deprecated in favor of isLoading and will be removed in the next major version. | - |
isLoading | boolean | Is true whenever the first fetch for a query is in-flight. - Is the same as isFetching && isPending. | - |
isLoadingError | false | false, since the query didn't fail while fetching for the first time. | InfiniteQueryObserverBaseResult.isLoadingError |
isPaused | boolean | A derived boolean from the fetchStatus variable, provided for convenience. - The query wanted to fetch, but has been paused. | - |
isPending | true | true, since there's no cached data and no query attempt has finished yet. | InfiniteQueryObserverBaseResult.isPending |
isPlaceholderData | false | false, since the data shown isn't the placeholderData. | InfiniteQueryObserverBaseResult.isPlaceholderData |
isRefetchError | false | false, since the query didn't fail while refetching. | InfiniteQueryObserverBaseResult.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. | InfiniteQueryObserverBaseResult.isSuccess |
refetch | (options?: RefetchOptions) => Promise<QueryObserverResult<TData, TError>> | A function to manually refetch the query. | - |
status | "pending" | 'pending', since there's no cached data and no query attempt has finished yet. | InfiniteQueryObserverBaseResult.status |
AI 翻译查看英文原文