Skip to content

@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

Released under the MIT License.