A Vuex plugin that allows managing multiple histories that can undo
vuex-multi-history
A Vuex plugin that allows managing multiple histories that can undo, redo and more.
Getting Started
-
Install the dependencies:
npm install vue vuex vuex-history-plugin
or
yarn add vue vuex vuex-history-plugin
-
Initialize the plugin:
import { VuexMultiHistory } from 'vuex-multi-history'; ... const options = {}; const vuexHistory = new VuexMultiHistory(options);
-
Register the plugin in the store:
import { Store } from 'vuex'; ... new Store({ ... plugins: [vuexHistory.plugin], });
For more information visit the docs.