Class Query<TQueryFnData, TError, TData, TQueryKey>

Type Parameters

  • TQueryFnData = unknown

  • TError = unknown

  • TData = TQueryFnData

  • TQueryKey extends QueryKey = QueryKey

Hierarchy

Accessors

  • get meta(): undefined | QueryMeta
  • Returns undefined | QueryMeta

Constructors

  • Type Parameters

    • TQueryFnData = unknown

    • TError = unknown

    • TData = TQueryFnData

    • TQueryKey extends readonly unknown[] = QueryKey

    Parameters

    • config: QueryConfig<TQueryFnData, TError, TData, TQueryKey>

    Returns Query<TQueryFnData, TError, TData, TQueryKey>

Methods

  • Parameters

    Returns void

  • Parameters

    Returns Promise<void>

  • Returns void

  • Returns void

  • Parameters

    Returns Promise<TData>

  • Returns number

  • Returns void

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Parameters

    • Optional staleTime: number

    Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • newData: TData
    • Optional options: SetDataOptions & {
          manual: boolean;
      }

    Returns TData

  • Parameters

    Returns void

  • Parameters

    • newCacheTime: undefined | number

    Returns void

Properties

abortSignalConsumed: any
cache: any
cacheTime: number
defaultOptions?: any
dispatch: any
initialState: QueryState<TData, TError>
isFetchingOptimistic?: boolean
logger: any
observers: any
options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>
promise?: any
queryHash: string
queryKey: TQueryKey
retryer?: any
revertState?: QueryState<TData, TError>
setOptions: any
state: QueryState<TData, TError>