Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

A Vuex plugin that allows managing multiple histories that can undo, redo and more

License

Notifications You must be signed in to change notification settings

m-ripper/vuex-multi-history

Repository files navigation

vuex-multi-history

Build Status npm version codecov

Multiple histories for Vuex

The Demo is available here.

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.