@pinia/root / pinia / SubscriptionCallback
SubscriptionCallback()<S>
ts
type SubscriptionCallback<S>: (mutation, state) => void;
Callback of a subscription
Type Parameters
• S
Parameters
• mutation: SubscriptionCallbackMutation
<S
>
• state: UnwrapRef
<S
>
Returns
void