Mutation
class Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> extends Removable { }
constructor(config: MutationConfig<TData, TError, TVariables, TContext>);
private dispatch;
private logger;
private mutationCache;
private observers;
private retryer?;
meta: MutationMeta | undefined;
mutationId: number;
options: MutationOptions<TData, TError, TVariables, TContext>;
state: MutationState<TData, TError, TVariables, TContext>;
protected optionalRemove(): void;
continue(): Promise<TData>;
execute(): Promise<TData>;
§Type Parameters
§Properties
§
meta: MutationMeta | undefined
[src]§
options: MutationOptions<TData, TError, TVariables, TContext>
[src]§
state: MutationState<TData, TError, TVariables, TContext>
[src]§Methods
§
addObserver(observer: MutationObserver<any, any, any, any>): void
[src]§
removeObserver(observer: MutationObserver<any, any, any, any>): void
[src]§
setState(state: MutationState<TData, TError, TVariables, TContext>): void
[src]