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
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ const UserProfile = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
userId () {
|
||||||
|
this.$store.commit('clearTimeline', { timeline: 'user' })
|
||||||
|
this.$store.dispatch('startFetching', ['user', this.userId])
|
||||||
|
}
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
UserCardContent,
|
UserCardContent,
|
||||||
Timeline
|
Timeline
|
||||||
|
|
Loading…
Reference in a new issue