Interface InfiniteQueryObserverSuccessResult<TData, TError>

interface InfiniteQueryObserverSuccessResult {
    data: InfiniteData<TData>;
    dataUpdatedAt: number;
    error: null;
    errorUpdateCount: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: null | TError;
    fetchNextPage: ((options?) => Promise<InfiniteQueryObserverResult<TData, TError>>);
    fetchPreviousPage: ((options?) => Promise<InfiniteQueryObserverResult<TData, TError>>);
    fetchStatus: FetchStatus;
    hasNextPage?: boolean;
    hasPreviousPage?: boolean;
    isError: false;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    isInitialLoading: boolean;
    isLoading: false;
    isLoadingError: false;
    isPaused: boolean;
    isPlaceholderData: boolean;
    isPreviousData: boolean;
    isRefetchError: false;
    isRefetching: boolean;
    isStale: boolean;
    isSuccess: true;
    refetch: (<TPageData>(options?) => Promise<QueryObserverResult<InfiniteData<TData>, TError>>);
    remove: (() => void);
    status: "success";
}

Type Parameters

  • TData = unknown

  • TError = unknown

Hierarchy

Properties

data: InfiniteData<TData>
dataUpdatedAt: number
error: null
errorUpdateCount: number
errorUpdatedAt: number
failureCount: number
failureReason: null | TError
fetchNextPage: ((options?) => Promise<InfiniteQueryObserverResult<TData, TError>>)

Type declaration

fetchPreviousPage: ((options?) => Promise<InfiniteQueryObserverResult<TData, TError>>)

Type declaration

fetchStatus: FetchStatus
hasNextPage?: boolean
hasPreviousPage?: boolean
isError: false
isFetched: boolean
isFetchedAfterMount: boolean
isFetching: boolean
isFetchingNextPage: boolean
isFetchingPreviousPage: boolean
isInitialLoading: boolean
isLoading: false
isLoadingError: false
isPaused: boolean
isPlaceholderData: boolean
isPreviousData: boolean
isRefetchError: false
isRefetching: boolean
isStale: boolean
isSuccess: true
refetch: (<TPageData>(options?) => Promise<QueryObserverResult<InfiniteData<TData>, TError>>)

Type declaration

remove: (() => void)

Type declaration

    • (): void
    • Returns void

status: "success"

Generated using TypeDoc