Last active
September 16, 2017 13:59
-
-
Save afontcu/5414afba256895da9c9affb3b26b4966 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createPersistedState from 'vuex-persistedstate' | |
const store = new Vuex.Store({ | |
strict: process.env.NODE_ENV !== 'production', | |
actions, | |
getters, | |
mutations, | |
modules, | |
plugins: [ | |
createPersistedState({ | |
storage: window.sessionStorage, | |
key: config.SESSION_NAME, | |
paths: ['user', 'categories', 'upgrades', 'experiences', 'cart'] | |
}) | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment