Force user profile timeline update when the user id changes (like when another user has been searched/found).
This commit is contained in:
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…
Reference in New Issue