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.
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 accountsclient
, as it includes functions that won't be accessible after the state is put into localStorage.What's to be done
reducer
) function that removes keys from the store that shouldn't be persistedgetState
) function that initializes parts of the store that can't be persisted, like aAccount
s client instance