Interface MutateOptions<TData, TError, TVariables, TContext>

Type Parameters

  • TData = unknown

  • TError = unknown

  • TVariables = void

  • TContext = unknown

Hierarchy

  • MutateOptions

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