@salesqueze/conf-helper

2.0.17 • Public • Published

@salesqueze/conf-helper

@salesqueze/conf-helper

SaleSqueze Configurator Helper Vuex Store module for NuxtJS and Vue

Features

  • Configurator state management
  • Persistant storage

📖  Read the documentation

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

/@salesqueze/conf-helper/

    Package Sidebar

    Install

    npm i @salesqueze/conf-helper

    Weekly Downloads

    5

    Version

    2.0.17

    License

    none

    Unpacked Size

    10.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • leonpanjtarss