Skip to content

Commit

Permalink
Reload data on page route update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwohlbruck committed May 17, 2022
1 parent 9400157 commit 512bc67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/views/Lamps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ export default class Lamps extends Vue {
await getMyGroups()
}
// When navigating reload data
beforeRouteUpdate(_to: any, _from: any, next: any) {
getMyGroups()
next()
}
get myGroups() {
return this.$store.getters.myGroups
}
Expand Down

0 comments on commit 512bc67

Please sign in to comment.