interface MutationCacheConfig {
    onError?: ((error, variables, context, mutation) => unknown);
    onMutate?: ((variables, mutation) => unknown);
    onSettled?: ((data, error, variables, context, mutation) => unknown);
    onSuccess?: ((data, variables, context, mutation) => unknown);
}

Properties

onError?: ((error, variables, context, mutation) => unknown)

Type declaration

    • (error, variables, context, mutation): unknown
    • Parameters

      • error: unknown
      • variables: unknown
      • context: unknown
      • mutation: Mutation<unknown, unknown, unknown, unknown>

      Returns unknown

onMutate?: ((variables, mutation) => unknown)

Type declaration

    • (variables, mutation): unknown
    • Parameters

      • variables: unknown
      • mutation: Mutation<unknown, unknown, unknown, unknown>

      Returns unknown

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

Type declaration

    • (data, error, variables, context, mutation): unknown
    • Parameters

      • data: unknown
      • error: unknown
      • variables: unknown
      • context: unknown
      • mutation: Mutation<unknown, unknown, unknown, unknown>

      Returns unknown

onSuccess?: ((data, variables, context, mutation) => unknown)

Type declaration

    • (data, variables, context, mutation): unknown
    • Parameters

      • data: unknown
      • variables: unknown
      • context: unknown
      • mutation: Mutation<unknown, unknown, unknown, unknown>

      Returns unknown

Generated using TypeDoc