Skip to content

API Documentation / @pinia/colada / UseMutationEntryExtensions

Interface: UseMutationEntryExtensions<TData, TVars, TError, TContext>

Allows defining extensions to the mutation entry that are returned by useMutation().

Type Parameters

TData

TData

TVars

TVars

TError

TError

TContext

TContext extends Record<any, any> = _EmptyObject

Properties

dataUpdatedAt?

ts
optional dataUpdatedAt: ShallowRef<number>;

Timestamp of when data was last successfully returned. TanStack Query compatible property.


errorUpdatedAt?

ts
optional errorUpdatedAt: ShallowRef<number>;

Timestamp of when an error last occurred. TanStack Query compatible property.


isError?

ts
optional isError: ComputedRef<boolean>;

Whether the mutation status is 'error'. TanStack Query compatible property.


isIdle?

ts
optional isIdle: ComputedRef<boolean>;

Whether the mutation has never been called (status is 'pending' and asyncStatus is 'idle'). TanStack Query compatible property.


isPending?

ts
optional isPending: ComputedRef<boolean>;

Whether the mutation is currently in progress (asyncStatus === 'loading'). TanStack Query compatible property.


isSuccess?

ts
optional isSuccess: ComputedRef<boolean>;

Whether the mutation status is 'success'. TanStack Query compatible property.


submittedAt?

ts
optional submittedAt: ShallowRef<number>;

Timestamp of when the mutation was last submitted. TanStack Query compatible property.

Released under the MIT License.