Constructors

Link copied to clipboard
constructor(config: QueryConfig<TQueryFnData, TError, TData, TQueryKey>)

Properties

Link copied to clipboard
open var gcTime: JsDuration
Link copied to clipboard
open var meta: QueryMeta?
Link copied to clipboard
open var observers: ReadonlyArray<QueryObserver<*, *, *, *, *>>
Link copied to clipboard
Link copied to clipboard
open var promise: Promise<TData>?
Link copied to clipboard
open var queryHash: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addObserver(observer: QueryObserver<*, *, *, *, *>)
Link copied to clipboard
open fun cancel(options: CancelOptions = definedExternally): Promise<Void>
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open fun fetch(options: QueryOptions<TQueryFnData, TError, TData, TQueryKey, *> = definedExternally, fetchOptions: FetchOptions<TQueryFnData> = definedExternally): Promise<TData>
Link copied to clipboard
Link copied to clipboard
open fun invalidate()
Link copied to clipboard
open fun isActive(): Boolean
Link copied to clipboard
open fun isDisabled(): Boolean
Link copied to clipboard
open fun isStale(): Boolean
Link copied to clipboard
open fun isStaleByTime(staleTime: JsDuration = definedExternally): Boolean
Link copied to clipboard
open fun onFocus()
Link copied to clipboard
open fun onOnline()
Link copied to clipboard
open fun removeObserver(observer: QueryObserver<*, *, *, *, *>)
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun setData(newData: TData, options: SetDataOptions = definedExternally): TData
Link copied to clipboard
open fun setOptions(options: QueryOptions<TQueryFnData, TError, TData, TQueryKey, *> = definedExternally)
Link copied to clipboard
open fun setState(state: QueryState<TData, TError>, setStateOptions: SetStateOptions = definedExternally)