Skip to content

Commit

Permalink
feat(support pop up): add vuex persist logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Oct 7, 2020
1 parent f728c97 commit b8b0dc5
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 @@ -59,4 +59,13 @@ export default ({ store }) => {
},
}),
}).plugin(store)

// Default state
new VuexPersistence({
key: 'vuex',

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

0 comments on commit b8b0dc5

Please sign in to comment.