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

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>;
onMutationUpdate(action: Action<TData, TError, TVariables, TContext>): void;
reset(): void;
setOptions(options?: MutationObserverOptions<TData, TError, TVariables, TContext>): void;
}

§Type Parameters

§
TData = unknown
[src]
§
TError = unknown
[src]
§
TVariables = void
[src]
§
TContext = unknown
[src]

§Extends

§
Subscribable<MutationObserverListener<TData, TError, TVariables, TContext>>
[src]

§Constructors

§
new MutationObserver(client: QueryClient, options: MutationObserverOptions<TData, TError, TVariables, TContext>)
[src]

§Properties

§
client
[src]
§
currentMutation
[src]
§
currentResult
[src]
§
mutateOptions
[src]
§
notify
[src]
§
updateResult
[src]
§
options: MutationObserverOptions<TData, TError, TVariables, TContext>
[src]

§Methods

§
bindMethods(): void protected
[src]
§
onUnsubscribe(): void protected
[src]
§
getCurrentResult(): MutationObserverResult<TData, TError, TVariables, TContext>
[src]
§
mutate(variables?: TVariables, options?: MutateOptions<TData, TError, TVariables, TContext>): Promise<TData>
[src]
§
onMutationUpdate(action: Action<TData, TError, TVariables, TContext>): void
[src]
§
reset(): void
[src]
§
setOptions(options?: MutationObserverOptions<TData, TError, TVariables, TContext>): void
[src]