Clear timeline on user change.
This commit is contained in:
parent
2e7029b670
commit
bda0a76c89
2 changed files with 16 additions and 0 deletions
|
@ -3,6 +3,7 @@ import Timeline from '../timeline/timeline.vue'
|
|||
|
||||
const UserProfile = {
|
||||
created () {
|
||||
this.$store.commit('clearTimeline', { timeline: 'user' })
|
||||
this.$store.dispatch('startFetching', ['user', this.userId])
|
||||
},
|
||||
destroyed () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue