Static GitHub Issues

[576] Best impelentation localStorage

prev: Probably example from the docs is not working
next: JWT authentication with Nuxt.js

I have a survey with 5 different questions, the state of the questions is stored in a vuex store. These questions are used on different pages in the application. When I refresh the page the state is lost and gives an error.

I have been looking at vuex-persistedstate, but it doesn't work together with nuxt as described in the issue below: https://github.com/robinvdvleuten/vuex-persistedstate/issues/16

My idea is to implement a local storage but unfortunately I did not succeed so far. I found this issue talking about local storage: https://github.com/nuxt/nuxt.js/issues/185 and it says we shouldn't use it.

Are there any suggestions of keeping the vuex state on refresh without creating a session on server (no login).

<!--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/c499">#c499</a>)</em></sub></div>