Interface QueryObserverBaseResult<TData, TError>

interface QueryObserverBaseResult {
    data: undefined | TData;
    dataUpdatedAt: number;
    error: null | TError;
    errorUpdateCount: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: null | TError;
    fetchStatus: FetchStatus;
    isError: boolean;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isLoading: boolean;
    isLoadingError: boolean;
    isPaused: boolean;
    isPlaceholderData: boolean;
    isPreviousData: boolean;
    isRefetchError: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isSuccess: boolean;
    refetch: (<TPageData>(options?) => Promise<QueryObserverResult<TData, TError>>);
    remove: (() => void);
    status: QueryStatus;
}

Type Parameters

  • TData = unknown

  • TError = unknown

Hierarchy

Properties

data: undefined | TData
dataUpdatedAt: number
error: null | TError
errorUpdateCount: number
errorUpdatedAt: number
failureCount: number
failureReason: null | TError
fetchStatus: FetchStatus
isError: boolean
isFetched: boolean
isFetchedAfterMount: boolean
isFetching: boolean
isInitialLoading: boolean
isLoading: boolean
isLoadingError: boolean
isPaused: boolean
isPlaceholderData: boolean
isPreviousData: boolean
isRefetchError: boolean
isRefetching: boolean
isStale: boolean
isSuccess: boolean
refetch: (<TPageData>(options?) => Promise<QueryObserverResult<TData, TError>>)

Type declaration

remove: (() => void)

Type declaration

    • (): void
    • Returns void

status: QueryStatus

Generated using TypeDoc