MutationObserver
class MutationObserver<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> extends Subscribable<MutationObserverListener<TData, TError, TVariables, TContext>> { }
constructor(client: QueryClient, options: MutationObserverOptions<TData, TError, TVariables, TContext>);
private client;
private currentMutation?;
private currentResult;
private mutateOptions?;
private notify;
private updateResult;
options: MutationObserverOptions<TData, TError, TVariables, TContext>;
protected bindMethods(): void;
protected onUnsubscribe(): void;
getCurrentResult(): MutationObserverResult<TData, TError, TVariables, TContext>;
mutate(variables?: TVariables, options?: MutateOptions<TData, TError, TVariables, TContext>): Promise<TData>;
reset(): void;
§Type Parameters
§Constructors
§
new MutationObserver(client: QueryClient, options: MutationObserverOptions<TData, TError, TVariables, TContext>)
[src]§Properties
§
options: MutationObserverOptions<TData, TError, TVariables, TContext>
[src]§Methods
§
getCurrentResult(): MutationObserverResult<TData, TError, TVariables, TContext>
[src]§
mutate(variables?: TVariables, options?: MutateOptions<TData, TError, TVariables, TContext>): Promise<TData>
[src]§
setOptions(options?: MutationObserverOptions<TData, TError, TVariables, TContext>): void
[src]