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

feature/client-side-greentext
Shpuld Shpuldson 7 years ago
parent dbad99cb4f
commit 2084c92dff

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

Loading…
Cancel
Save