Home

Issue: 1825

how can i rehydrate vuex store in nuxt (without plugins) ?

[issue link]

currently i used vuex-persistedstate to make the state’s persisted when the page are refreshes, but it caused the component inside my layout files rendered after the page are mounted/rendered (i.e if i refreshed the browser the sign in button are flashing into user profile picture in 1s when they are logged in) which is not like wht i expected. the button component are depends on userAuthenticated getters, so i think vuex-persistedstate rehydrating the store when nuxt pages are mounted/rendered.

if theres a way to rehydrate the store without any plugins only with nuxt method that provided, i would know how and why my previous implementation caused a bug?
thanks 😃)
@alexchopin @pi0 @Atinux

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