Questions tagged [vuex-persist]
8 questions
1
vote
1 answer
Vuex-persistedstate hide state from sessionStorage
I'm making an online quiz web application with Vue js, and .NET Web API. I have JSON Web Token Auth and pass the token in local storage, also I get all my questions and answers from my API and use vuex-persistedstate to keep my state when refreshing…

Ibrahim
- 131
- 2
- 12
1
vote
0 answers
vuex-persist does not store in localStorage: vue3 migration
I am trying to migrate a project from vue 2 to vue 3. The project uses vuex and vuex-persist to store the state of the application in localStorage.
In vue2, the code was as follows:
import Vuex from 'vuex';
import Vue from 'vue';
import Vapi from…

Saptarshi
- 603
- 2
- 7
- 15
0
votes
1 answer
How to introduce changes to Vuex persisted state?
We are using persisted localstorage state in our application.
When adding new fields or values to the store module, they are not applied to existing users' states. It only works when clearing the storage.
How should one go about solving this…

kuntervert
- 86
- 1
- 9
0
votes
2 answers
Vue3 Vuex Persist not saving data appropriately
I'm having a difficult time getting Vuex-Persist to work properly. Basically, not saving the data it should:
Secondly, it disappears upon refresh. Which defeats the whole point of the library.
Here is my store file:
import { createStore } from…

Riza Khan
- 2,712
- 4
- 18
- 42
0
votes
1 answer
vuex-persist not updating vuex state
I'm having a difficult time figuring out why my state isn't changing in vuex persist. Part of the code is shown below:

Mark
- 730
- 1
- 8
- 22
0
votes
2 answers
Check if vuex-persist has restored data in Nuxt project
I have added Vuex-Persist and Vuex-ORM to my Nuxt project. When the application starts for the first time I want to add some boilerplate data.
In my default.vue layout I have added a created function to add this dummy data.