Static GitHub Issues

[1641] Localstorage / persisting vuex

prev: Update the url causes reinitialization of the current component
next: Server Side context is lost when loading Data from pages or Store

Is this still completely impossible without using session or cookies?

I'm working towards a quick generated site, with a very basic vuex store. I'd just like to persist some data across refreshes. I've tried hacking together a workaround by setting localstorage at the same time as setting the state, and then reading the state back from localstorage in a middleware, but obviously window not found is getting in the way.

Any quick tips? If there are any it would be great to see the FAQ updated.

Note - spa mode is not an option due to SEO concerns - which is the whole reason for using nuxt.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1467">#c1467</a>)</em></sub></div>