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

Latest commit

 

History

History
42 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.17 KB

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.