Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Best method to persist vuex states with ionic storage v3?

$
0
0

Hi i tried to persist states creating a vuex mutation ‘xInit()’ that sets the states with the ionic storage on a mounting component. wich is basically ok. but i wanted to try something more generic so i tried to use ‘vuex-persist’

The plugin worked well with String states, but when trying to set Object states it seem to not work very well. got this error.

So my question is if any you know how to deal with this and persist vuex states?

And if its ok to caching/storing userdata/auth tokens on vuex side? Thanks.!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>