nativescript-vuex-persistent

A small library to make vuex persistent in nativescript-vue projects.

Usage no npm install needed!

<script type="module">
  import nativescriptVuexPersistent from 'https://cdn.skypack.dev/nativescript-vuex-persistent';
</script>

README

GitHub license

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.
  ])]
});