vuex-undo-redo
vuex-undo-redo copied to clipboard
issue with Vue-Idle
I am using Vue-Idle ,so after 30 second new mtation run ,which make "redo" stack empty.. because in plugin code Undone array become empty on new mutation.
created() {
if (this.$store) {
this.$store.subscribe(mutation => {
if (mutation.type !== EMPTY_STATE && this.ignoreMutations.indexOf(mutation.type) === -1) {
this.done.push(mutation);
}
if (this.newMutation) {
this.undone = []; } This array casue issue after idle mutation and redo button change to disbaled
});
}
},