Plans from $25/month
This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Pinia Plugins
In this lesson, we create a Pinia plugin to provide reusable undo/redo functionality for our stores. With Pinia plugins you are able do a wide variety of things including:
- Adding custom properties
- Adding custom methods
- Watching the store’s state with dollar sign subscribe
- Limiting the functionality to specific stores with a custom option
- Implement side effects like local storage
- Add new state
- Add new actions/methods
- Wrap existing actions/methods
Links
