Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Persist Store #53

Open
pixeldesu opened this issue Nov 28, 2017 · 0 comments
Open

Persist Store #53

pixeldesu opened this issue Nov 28, 2017 · 0 comments

Comments

@pixeldesu
Copy link
Member

The Vuex store should be persisted, maybe using vuex-persistedstate. But for that to work I need a reducer and some initializations on startup.

The reducer needs to get rid of a columns postStorage as I don't want to save tweets locally. Another thing that needs to be cleared is a accounts client, as it includes functions that won't be accessible after the state is put into localStorage.

What's to be done

  • Install the vuex-persistedstate package
  • Add it as a plugin to the Vuex store
  • Write a reducer (reducer) function that removes keys from the store that shouldn't be persisted
  • Write a hydration (getState) function that initializes parts of the store that can't be persisted, like a Accounts client instance
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant