Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MutationCache

class MutationCache extends Subscribable<MutationCacheListener> {
constructor(config?: MutationCacheConfig);
private mutationId;
private mutations;
config: MutationCacheConfig;
 
add(mutation: Mutation<any, any, any, any>): void;
build<TData, TError, TVariables, TContext>(
client: QueryClient,
options: MutationOptions<TData, TError, TVariables, TContext>,
state?: MutationState<TData, TError, TVariables, TContext>,
): Mutation<TData, TError, TVariables, TContext>;
clear(): void;
find<TData = unknown, TError = unknown, TVariables = any, TContext = unknown>(filters: MutationFilters): Mutation<TData, TError, TVariables, TContext> | undefined;
findAll(filters: MutationFilters): Mutation[];
getAll(): Mutation[];
notify(event: MutationCacheNotifyEvent): void;
remove(mutation: Mutation<any, any, any, any>): void;
resumePausedMutations(): Promise<void>;
}

§Extends

§
Subscribable<MutationCacheListener>
[src]

§Constructors

§
new MutationCache(config?: MutationCacheConfig)
[src]

§Properties

§
mutationId
[src]
§
mutations
[src]
§
config: MutationCacheConfig
[src]

§Methods

§
add(mutation: Mutation<any, any, any, any>): void
[src]
§
build<TData, TError, TVariables, TContext>(client: QueryClient, options: MutationOptions<TData, TError, TVariables, TContext>, state?: MutationState<TData, TError, TVariables, TContext>): Mutation<TData, TError, TVariables, TContext>
[src]
§
clear(): void
[src]
§
find<TData = unknown, TError = unknown, TVariables = any, TContext = unknown>(filters: MutationFilters): Mutation<TData, TError, TVariables, TContext> | undefined
[src]
§
findAll(filters: MutationFilters): Mutation[]
[src]
§
getAll(): Mutation[]
[src]
§
notify(event: MutationCacheNotifyEvent): void
[src]
§
remove(mutation: Mutation<any, any, any, any>): void
[src]
§
resumePausedMutations(): Promise<void>
[src]