Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persist only selected paths #18

Open
achtan opened this issue Jan 2, 2019 · 6 comments
Open

persist only selected paths #18

achtan opened this issue Jan 2, 2019 · 6 comments

Comments

@achtan
Copy link

achtan commented Jan 2, 2019

can please you implement:

paths <Array>: An array of any paths to partially persist the state. If no paths are given, the complete state is persisted. (default: [])

from https://github.com/robinvdvleuten/vuex-persistedstate

@Stormtv
Copy link
Contributor

Stormtv commented Jan 11, 2019

The whitelist and blacklist options should allow you to mirror this functionality if I am not mistaken.

createPersistedState({
  blacklist: ['Onboarding/setSeed']
})

@achtan
Copy link
Author

achtan commented Jan 12, 2019

currently i have 11 store modules with avg 6 actions... so its 66 actions and still growing :)
... so maintain so many actions in whitelist array is a byt difficult
with 'paths' support i can only specify modules, and thats it :)

createPersistedState({
  paths: ['System','CN', 'DB', 'CL', 'DocumentsTree', 'Columns', 'DocumentActions', 'QuickSearches', 'QueryHistory', 'QueryFavorites', 'Settings', 'Tabs']
})

@Stormtv
Copy link
Contributor

Stormtv commented Jan 16, 2019

Good points. I'll look into it it might clean my code up a little bit also.

@akodkod
Copy link
Contributor

akodkod commented Jan 19, 2019

@achtan, unfortunately, I don't have enough time to implement it by myself at the moment. But, please, feel free to open a pull-request with such functionality, I would be happy to merge it.

The best place to start: https://github.com/vue-electron/vuex-electron/blob/master/src/persisted-state.js#L91

Thank you!

@zciendor
Copy link

The whitelist and blacklist options should allow you to mirror this functionality if I am not mistaken.

No it doesn't seem to work that way. See issue #19 for details.

@akodkod
Copy link
Contributor

akodkod commented Aug 29, 2019

#44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants