improve performance by caching pinned status ids into user object
This commit is contained in:
parent
87de130ee5
commit
110c9d3b26
5 changed files with 29 additions and 15 deletions
|
@ -42,9 +42,6 @@ const UserProfile = {
|
|||
timeline () {
|
||||
return this.$store.state.statuses.timelines.user
|
||||
},
|
||||
pinnedStatuses () {
|
||||
return filter(this.timeline.statuses, { pinned: true })
|
||||
},
|
||||
favorites () {
|
||||
return this.$store.state.statuses.timelines.favorites
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue