QueryClient
Functions
Link copied to clipboard
open fun <TQueryFilters : QueryFilters<*, *, *, *>> cancelQueries(filters: TQueryFilters = 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, TQueryFilters : QueryFilters<*, *, *, *>> getQueriesData(filters: TQueryFilters): 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 <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 <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 <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
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, TQueryFilters : QueryFilters<*, *, *, *>> setQueriesData(filters: TQueryFilters, 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, *, *>)