Skip to content

Commit

Permalink
feat(vuex-persist): persist premium vuex store
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 7, 2020
1 parent efeee7f commit c3586fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/vuex-persist.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ export default ({ store }) => {
}
},
}).plugin(store)

// Premium State
new VuexPersistence({
key: 'premium',

reducer: (state) => ({
premium: { responseData: state.premium.responseData },
}),
}).plugin(store)
}

0 comments on commit c3586fe

Please sign in to comment.