rubystarashe / nuxt-vuex-localstorage

MIT License
161 stars 18 forks source link

Use localStorage for individual module state keys #19

Open simplenotezy opened 4 years ago

simplenotezy commented 4 years ago

Can I use localStorage / cookieStorage for individual state keys?

Let's say I have a module called "user", and I want to only store the "state.id" in local storage. Is this possible?

By, great job in releasing such a small sized library. The other vuex localstorage is 200kb!