Force user profile timeline update when the user id changes (like when another user has been searched/found).

This commit is contained in:
Shpuld Shpuldson 2017-08-16 16:40:09 +03:00
parent dbad99cb4f
commit 2084c92dff

View file

@ -22,6 +22,12 @@ const UserProfile = {
}
}
},
watch: {
userId () {
this.$store.commit('clearTimeline', { timeline: 'user' })
this.$store.dispatch('startFetching', ['user', this.userId])
}
},
components: {
UserCardContent,
Timeline