Class QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>

Type Parameters

  • TQueryFnData = unknown

  • TError = unknown

  • TData = TQueryFnData

  • TQueryData = TQueryFnData

  • TQueryKey extends QueryKey = QueryKey

Hierarchy

Constructors

  • Type Parameters

    • TQueryFnData = unknown

    • TError = unknown

    • TData = TQueryFnData

    • TQueryData = TQueryFnData

    • TQueryKey extends readonly unknown[] = QueryKey

    Parameters

    Returns QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>

Methods

  • Returns void

  • Parameters

    • query: Query<TQueryFnData, TError, TQueryData, TQueryKey>
    • options: QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>

    Returns QueryObserverResult<TData, TError>

  • Returns void

  • Parameters

    Returns Promise<QueryObserverResult<TData, TError>>

  • Returns Query<TQueryFnData, TError, TQueryData, TQueryKey>

  • Returns boolean

  • Parameters

    • action: Action<TData, TError>

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    Returns void

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

    Returns void

Properties

clearRefetchInterval: any
clearStaleTimeout: any
client: any
computeRefetchInterval: any
currentQuery: any
currentQueryInitialState: any
currentRefetchInterval?: any
currentResult: any
currentResultOptions?: any
currentResultState?: any
executeFetch: any
listeners: Set<{
    listener: QueryObserverListener<TData, TError>;
}>
notify: any
options: QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>
previousQueryResult?: any
refetchIntervalId?: any
selectError: any
selectFn?: any
selectResult?: any
staleTimeoutId?: any
trackedProps: any
updateQuery: any
updateRefetchInterval: any
updateStaleTimeout: any
updateTimers: any