Skip to content

lolitaframework/vuex-mutations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published