rubystarashe / nuxt-vuex-localstorage

MIT License
161 stars 18 forks source link

Use localStorage in existing module #20

Closed simplenotezy closed 3 years ago

simplenotezy commented 4 years ago

I have a module called "cart.js". How can I enable storage for this module? Do I really have to contain states inside the "localStorage.js" file, or can I somehow just tell the module to save keys in localStorage?

karolsw3 commented 4 years ago
Screenshot 2020-06-18 at 16 38 47

Just modify the config

simplenotezy commented 4 years ago

Thanks for your reply! Will that store EVERY key in localstorage for the given store?

rubystarashe commented 3 years ago

yes