Skip to content

API reference > @kontsedal/olas-react > UseMutationResult

UseMutationResult type ​

What useMutation returns: the mutation's signals as plain values, plus its triggers.

Signature:

typescript
type UseMutationResult<V, R> = {
  data: R | undefined;
  error: unknown | undefined;
  status: AsyncStatus;
  isPending: boolean;
  isIdle: boolean;
  isSuccess: boolean;
  isError: boolean;
  lastVariables: V | undefined;
  mutate: MutateFn<V>;
  run: MutationRun<V, R>;
  reset: () => void;
};

References: AsyncStatus, MutateFn, MutationRun

Released under the MIT License.