Home

Issue: 1641

Localstorage / persisting vuex

[issue link]

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.

This question is available on Nuxt.js community (#c1467)