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!

Subscribe to the State

In this lesson, we utilize the Pinia $subscribe method to keep watch on the cartStore’s state in order to power a undo/redo feature for our Pineapple stand.

Using $subscribe, we can enact side effects for our Vue.js applications whenever the state of a particular store changes.

Links