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
dataUpdatedAt: ShallowRef<number>;

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


errorUpdatedAt ​

ts
errorUpdatedAt: ShallowRef<number>;

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


isDelaying ​

ts
isDelaying: ShallowRef<boolean>;

Returns whether the mutation is currently delaying its asyncStatus from becoming 'loading'. Requires the PiniaColadaDelay or PiniaColadaDelayMutations plugin.


isError ​

ts
isError: ComputedRef<boolean>;

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


isIdle ​

ts
isIdle: ComputedRef<boolean>;

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


isPending ​

ts
isPending: ComputedRef<boolean>;

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


isSuccess ​

ts
isSuccess: ComputedRef<boolean>;

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


submittedAt ​

ts
submittedAt: ShallowRef<number>;

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

Released under the MIT License.