QueryClient
Functions
Link copied to clipboard
open fun cancelQueries(filters: QueryFilters = definedExternally, cancelOptions: CancelOptions = definedExternally): Promise<Void>
Link copied to clipboard
open fun <T : MutationOptions<*, *, *, *>> defaultMutationOptions(options: T = definedExternally): T
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryData, TQueryKey : QueryKey, TPageParam> defaultQueryOptions(options: QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam>): DefaultedQueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey, TPageParam> ensureInfiniteQueryData(options: EnsureInfiniteQueryDataOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): Promise<InfiniteData<TData, TPageParam>>
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey> ensureQueryData(options: EnsureQueryDataOptions<TQueryFnData, TError, TData, TQueryKey, *>): Promise<TData>
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey, TPageParam> fetchInfiniteQuery(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): Promise<InfiniteData<TData, TPageParam>>
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey, TPageParam> fetchQuery(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): Promise<TData>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <TQueryFnData> getQueriesData(filters: QueryFilters): ReadonlyArray<JsTuple2<QueryKey, TQueryFnData?>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <TQueryFnData, TError> getQueryState(queryKey: QueryKey): QueryState<TQueryFnData, TError>?
Link copied to clipboard
open fun invalidateQueries(filters: InvalidateQueryFilters = definedExternally, options: InvalidateOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey, TPageParam> prefetchInfiniteQuery(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>): Promise<Void>
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryKey : QueryKey> prefetchQuery(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey, *>): Promise<Void>
Link copied to clipboard
open fun refetchQueries(filters: RefetchQueryFilters = definedExternally, options: RefetchOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
open fun resetQueries(filters: QueryFilters = definedExternally, options: ResetOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <TData, TError, TVariables, TContext> setMutationDefaults(mutationKey: MutationKey, options: MutationObserverOptions<TData, TError, TVariables, TContext>)
Link copied to clipboard
open fun <TQueryFnData> setQueriesData(filters: QueryFilters, updater: Updater<TQueryFnData?, TQueryFnData?>, options: SetDataOptions = definedExternally): ReadonlyArray<JsTuple2<QueryKey, TQueryFnData?>>
Link copied to clipboard
open fun <TQueryFnData> setQueryData(queryKey: QueryKey, updater: Updater<TQueryFnData?, TQueryFnData?>, options: SetDataOptions = definedExternally): TQueryFnData?
Link copied to clipboard
open fun <TQueryFnData, TError, TData, TQueryData> setQueryDefaults(queryKey: QueryKey, options: QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, *, *>)