rubystarashe / nuxt-vuex-localstorage

MIT License
161 stars 18 forks source link

Is module 'localStorage' required or can 'index.js' be used? #22

Open Rednas83 opened 4 years ago

Rednas83 commented 4 years ago

Instead of localStorage.js I used index.js to simplify the syntax for reading/write to store. This also because I only require 1 localStorage module.

Seems to work fine in most scenario

Only problem is that after refreshing the value is not initialized from LocalStorage.

Is this because a module with a name 'localStorage' must be used?