Skip to content

@pinia/root / pinia / StoreOnActionListener

StoreOnActionListener()<Id, S, G, A>

ts
type StoreOnActionListener<Id, S, G, A> = (context) => void;

Argument of store.$onAction()

Type Parameters

Id extends string

S extends StateTree

G

A

Parameters

context

StoreOnActionListenerContext<Id, S, G, object extends A ? _ActionsTree : A>

Returns

void

Released under the MIT License.