vuex-mutations

1.0.1 • Public • Published

Simple Vuex mutations

GitHub license

This plug-in saves the state of your app in the local storage and simplifies the development of mutations.

Installation

Install through npm:

npm install --save vuex-mutations

Usage

Use it in your app like so:

 
import VuexMutations from 'vuex-mutations';
Vue.use(Vuex)
 
export default new Vuex.Store(
  VuexMutations({
    state: {
      user: { asd: 1 },
      some_data: 123
    },
  })
);
 
 
this.$store.commit('someData', 'new some data value');
this.$store.commit('user', { new: 'user' });
 

Readme

Keywords

Package Sidebar

Install

npm i vuex-mutations

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

6.93 kB

Total Files

8

Last publish

Collaborators

  • therealguriev