Skip to content

Commit

Permalink
feat: persist last booru used
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Feb 28, 2021
1 parent aaa90f5 commit 4f5e767
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/vuex-persist.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import VuexPersistence from 'vuex-persist'

export default ({ store }) => {
// Booru state
new VuexPersistence({
key: 'booru',

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

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

0 comments on commit 4f5e767

Please sign in to comment.