nativescript-vuex-persistent
A small library to make vuex persistent in nativescript-vue projects.
npm i --save nativescript-vuex-persistent
- Version: 1.2.0
- GitHub: https://github.com/Gcuencam/ns-vuex-persistent
- NPM: https://www.npmjs.com/package/nativescript-vuex-persistent
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Install
npm install --save nativescript-vuex-persistent
Use
import NSVuexPersistent from 'nativescript-vuex-persistent';
const store = new Vuex.Store({
state: {
// Your state.
},
mutations,
actions,
getters,
strict: debug,
plugins: [NSVuexPersistent([
// Here you will define the states that you want to be persistent.
])]
});