This is the library: https://github.com/robinvdvleuten/vuex-persistedstate. I created the following plugin file for Nuxt.
import createPersistedState from 'vuex-persistedstate'
export default ({ store }) => {
createPersistedState()(store)
}
The problem is I am not sure how I can exlude certain stores since this persists all the stores.