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

  1. Install the dependencies:
    npm install vue vuex vuex-history-plugin
    or
    yarn add vue vuex vuex-history-plugin

  2. Initialize the plugin:

    import { VuexMultiHistory } from 'vuex-multi-history';
    ...
    
    const options = {};
    const vuexHistory = new VuexMultiHistory(options);
    
  3. Register the plugin in the store:

    import { Store } from 'vuex';
    
    ...
    
    new Store({
           ...
    
           plugins: [vuexHistory.plugin],
    });
    

For more information visit the docs.

GitHub