How do I make undo / redo using Vuex? I am working on a pretty complex app and Vue dev tools helped me a lot to switch between state, so I want that feature on my app. How c
See: https://vuex.vuejs.org/en/api.html
You can easely use subscribe(handler: Function) to register a function that keeps all the states you want from a given Store in an array.
subscribe(handler: Function)
Then you can use any of the saved state in that array by giving them as argument to replaceState(state: Object).
replaceState(state: Object)