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