API Documentation / pinia / SubscriptionCallbackMutationPatchFunction

Interface: SubscriptionCallbackMutationPatchFunction

pinia.SubscriptionCallbackMutationPatchFunction

Context passed to a subscription callback when store.$patch() is called with a function.

Hierarchy

Properties

events

events: DebuggerEvent[]

DEV ONLY. Array of all the mutations done inside of the callback.

Defined in

pinia/src/types.ts:129


storeId

storeId: string

id of the store doing the mutation.

Inherited from

_SubscriptionCallbackMutationBase.storeId

Defined in

pinia/src/types.ts:81


type

type: patchFunction

Type of the mutation.

Overrides

_SubscriptionCallbackMutationBase.type

Defined in

pinia/src/types.ts:124