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 <TQueryFilters : QueryFilters<*, *, *, *>> cancelQueries(filters: TQueryFilters = 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 <TInvalidateQueryFilters : InvalidateQueryFilters<*, *, *, *>> invalidateQueries(filters: TInvalidateQueryFilters = definedExternally, options: InvalidateOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun <TQueryFilters : QueryFilters<*, *, *, *>> isFetching(filters: TQueryFilters = definedExternally): Int
Link copied to clipboard
open fun <TMutationFilters : MutationFilters<*, *, *, *>> isMutating(filters: TMutationFilters = definedExternally): Int
Link copied to clipboard
open fun mount()
Link copied to clipboard
open fun <TRefetchQueryFilters : RefetchQueryFilters<*, *, *, *>> refetchQueries(filters: TRefetchQueryFilters = definedExternally, options: RefetchOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun <TQueryFilters : QueryFilters<*, *, *, *>> removeQueries(filters: TQueryFilters = definedExternally)
Link copied to clipboard
open fun <TQueryFilters : QueryFilters<*, *, *, *>> resetQueries(filters: TQueryFilters = 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()