Pinia: The Enjoyable Vue Store
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

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