vuex-multi-history
v3.0.2
Published
A Vuex-plugin to allow undo, redo, etc for multiple histories
Downloads
87
Maintainers
Readme
vuex-multi-history
Multiple histories for Vuex
The Demo is available here.
Getting Started
Install the dependencies:
npm install vue vuex vuex-history-plugin
oryarn 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.