robinvdvleuten / vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.
https://npm.im/vuex-persistedstate
MIT License
5.77k stars 378 forks source link

Persist State with modules #336

Closed agustindiazg closed 4 years ago

agustindiazg commented 4 years ago

I have set namespaced: true to each of my modules. I need to persist just the _barcode witch it's inside one of my modules ( i have 10 modules). I have tried: const dataState = createPersistedState({ paths: ["auth/_barcode"] }); const dataState = createPersistedState({ paths: ["_barcode"] }); I'm doing something wrong ? or it's not possible to do that ? or it's a bug ?

agustindiazg commented 4 years ago

it was auth. _barcode my bad.