API Documentation / pinia / SubscriptionCallbackMutationDirect

Interface: SubscriptionCallbackMutationDirect

pinia.SubscriptionCallbackMutationDirect

Context passed to a subscription callback when directly mutating the state of a store with store.someState = newValue or store.$state.someState = newValue.

Hierarchy

Properties

events

events: DebuggerEvent

DEV ONLY. Different mutation calls.

Defined in

pinia/src/types.ts:96


storeId

storeId: string

id of the store doing the mutation.

Inherited from

_SubscriptionCallbackMutationBase.storeId

Defined in

pinia/src/types.ts:81


type

type: direct

Type of the mutation.

Overrides

_SubscriptionCallbackMutationBase.type

Defined in

pinia/src/types.ts:91