Skip to content

Commit

Permalink
fix reloading after path change
Browse files Browse the repository at this point in the history
  • Loading branch information
korelstar committed Apr 2, 2021
1 parent 93d1068 commit 81c1e8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export default {
this.$router.push('/')
}
store.commit('removeAllNotes')
store.commit('clearSyncCache')
this.loading.notes = true
this.loadNotes()
},
Expand Down
5 changes: 5 additions & 0 deletions src/store/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const mutations = {
}
},

clearSyncCache(state) {
state.etag = null
state.lastModified = 0
},

setSyncActive(state, active) {
state.active = active
},
Expand Down

0 comments on commit 81c1e8d

Please sign in to comment.