0👍
The thing with vue or vuex is that the with every reload all the data associated or stored in vue state or vuex state will be gone.
To get all those data with every reload, you have to call your respected API in the lifecycle hook.
For example, you want to get the user profile. On the pages created
lifecycle hook call the API.
created () {
this.$store.dispatch('fetchUserProfile');
}
This will retrieve the data and will be stored in vuex. Thus you can use it anywhere in the application.
Source:stackexchange.com