Augmenting stores with Pinia plugins

8 lessons

64. Intercepting Actions with $onAction

While observing reactive state is something that we can do with Vue out of the box, intercepting actions is not. Pinia allows us to intercept actions with the $onAction method. We can use this to track actions, execute code before and after, handle errors, etc.

Eduardo

Eduardo San Martin Morote

5

Debugging stores with the Devtools

1 lessons