Interface MutateOptions<TData, TError, TVariables, TContext>

interface MutateOptions {
    onError?: ((error, variables, context) => void);
    onSettled?: ((data, error, variables, context) => void);
    onSuccess?: ((data, variables, context) => void);
}

Type Parameters

  • TData = unknown

  • TError = unknown

  • TVariables = void

  • TContext = unknown

Properties

onError?: ((error, variables, context) => void)

Type declaration

    • (error, variables, context): void
    • Parameters

      • error: TError
      • variables: TVariables
      • context: undefined | TContext

      Returns void

onSettled?: ((data, error, variables, context) => void)

Type declaration

    • (data, error, variables, context): void
    • Parameters

      • data: undefined | TData
      • error: null | TError
      • variables: TVariables
      • context: undefined | TContext

      Returns void

onSuccess?: ((data, variables, context) => void)

Type declaration

    • (data, variables, context): void
    • Parameters

      • data: TData
      • variables: TVariables
      • context: TContext

      Returns void

Generated using TypeDoc