Interface MutationObserverSuccessResult<TData, TError, TVariables, TContext>

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

Type Parameters

  • TData = unknown

  • TError = unknown

  • TVariables = void

  • TContext = unknown

Hierarchy

Properties

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

Type declaration

    • (): void
    • Returns void

status: "success"
variables: undefined | TVariables

Generated using TypeDoc