Interface MutationObserverBaseResult<TData, TError, TVariables, TContext>

interface MutationObserverBaseResult {
    context: undefined | TContext;
    data: undefined | TData;
    error: null | TError;
    failureCount: number;
    failureReason: null | TError;
    isError: boolean;
    isIdle: boolean;
    isLoading: boolean;
    isPaused: boolean;
    isSuccess: boolean;
    mutate: MutateFunction<TData, TError, TVariables, TContext>;
    reset: (() => void);
    status: MutationStatus;
    variables: undefined | TVariables;
}

Type Parameters

  • TData = unknown

  • TError = unknown

  • TVariables = void

  • TContext = unknown

Hierarchy

Properties

context: undefined | TContext
data: undefined | TData
error: null | TError
failureCount: number
failureReason: null | TError
isError: boolean
isIdle: boolean
isLoading: boolean
isPaused: boolean
isSuccess: boolean
mutate: MutateFunction<TData, TError, TVariables, TContext>
reset: (() => void)

Type declaration

    • (): void
    • Returns void

variables: undefined | TVariables

Generated using TypeDoc