Seb-L / pinia-plugin-persist

Persist pinia state data in sessionStorage or other storages.
https://Seb-L.github.io/pinia-plugin-persist/
MIT License
214 stars 37 forks source link

for second time without refreshing page it dosent store the data #31

Open borisdmt opened 2 years ago

borisdmt commented 2 years ago

So i am having an issue when user login store is set with user data and all for first time it store it in localstorage or sessionstorage, when the user logouts the storage clear function will be called. after if i try to login with out refreshing the page presist doesn't work. ***note even when login in the second time pinia get populated with data

Seb-L commented 2 years ago

Are you clearing the Storage without using the store ?

Allen-1998 commented 2 years ago

Are you clearing the Storage without using the store ?

maybe about this @Seb-L https://github.com/Seb-L/pinia-plugin-persist/pull/39