state-stack
simple and fast undo/redo function for your web applications
the state-stack offers a simple undo/redo interface to store and restore application states. This undo/redo method has its limits, but does suffice for simple applications and is very easy to implement. Since this idea has been developed around Vue2 and Vuex there are specific packages for even simpler usage with Vue2
install
npm i state-stack --save
docs
quick example
let history = ; let myState = value:'initial value'; //tell the history wich state to managehistory; history; history; // crates an undo point myStatevalue = "new value"; history; // myState.value === 'initial value'