QueryClient

open external class QueryClient(config: QueryClientConfig = definedExternally)(source)

Constructors

Link copied to clipboard
constructor(config: QueryClientConfig = definedExternally)

Functions

Link copied to clipboard
open fun cancelQueries(filters: QueryFilters = definedExternally, cancelOptions: CancelOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun <T : MutationOptions<*, *, *, *>> defaultMutationOptions(options: T = definedExternally): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMutationDefaults(mutationKey: MutationKey): MutationObserverOptions<*, *, *, *>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getQueryDefaults(queryKey: QueryKey): QueryObserverOptions<*, *, *, *, *, *>
Link copied to clipboard
Link copied to clipboard
open fun invalidateQueries(filters: InvalidateQueryFilters = definedExternally, options: InvalidateOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun isFetching(filters: QueryFilters = definedExternally): Int
Link copied to clipboard
open fun isMutating(filters: MutationFilters = definedExternally): Int
Link copied to clipboard
open fun mount()
Link copied to clipboard
open fun refetchQueries(filters: RefetchQueryFilters = definedExternally, options: RefetchOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun removeQueries(filters: QueryFilters = definedExternally)
Link copied to clipboard
open fun resetQueries(filters: QueryFilters = definedExternally, options: ResetOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
open fun setDefaultOptions(options: DefaultOptions<*>)
Link copied to clipboard
Link copied to clipboard
open fun <TQueryFnData> setQueryData(queryKey: QueryKey, updater: Updater<TQueryFnData?, TQueryFnData?>, options: SetDataOptions = definedExternally): TQueryFnData?
Link copied to clipboard
open fun unmount()