@salesqueze/conf-helper
SaleSqueze Configurator Helper Vuex Store module for NuxtJS and Vue
Features
- Configurator state management
- Persistant storage
Installing
npm install @salesqueze/conf-helper
Adding to Your Project
@salesqueze/conf-helper
is a Vuex module, so adding it to your project is as simple as including the package as a module in your Vuex store. The index.js
for your Vuex store should look something like this:
import Vue from "vue";
import Vuex from "vuex";
import helper from "@salesqueze/conf-helper";
Vue.use(Vuex);
export default new Vuex.Store({
modules: { helper },
state: {},
mutations: {},
actions: {},
getters: {},
});
* Load the items from local storage
store.dispatch(LOAD_CART_FROM_STORAGE);
This is commonly dispatched every time that your vue application mounts. For example, in the `mounted` in your `app.vue` or in a `router.beforeEach()`.
## Built With
* [lodash](https://lodash.com/) - A modern JavaScript utility library
* [Vue](https://vuejs.org//) - JavaScript framework