Persist Vuex States

PHOTO EMBED

Thu Jul 22 2021 18:57:57 GMT+0000 (UTC)

Saved by @jolo #javascript #vue.js #nuxt

import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  createPersistedState()(store)
}
content_copyCOPY

Persists any vuex state into a local storage

https://github.com/robinvdvleuten/vuex-persistedstate