MutationCache
class MutationCache extends Subscribable<MutationCacheListener> { }
constructor(config?: MutationCacheConfig);
private mutationId;
private mutations;
config: MutationCacheConfig;
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;
getAll(): Mutation[];
notify(event: MutationCacheNotifyEvent): void;
resumePausedMutations(): Promise<void>;
§Properties
§Methods
§
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]§
find<TData = unknown, TError = unknown, TVariables = any, TContext = unknown>(filters: MutationFilters): Mutation<TData, TError, TVariables, TContext> | undefined
[src]§
findAll(filters: MutationFilters): Mutation[]
[src]