Fix an issue that caused the feed to rearrange on loadmore
parent
e5ec07b919
commit
050df83db7
|
@ -439,6 +439,7 @@ export class FeedModel {
|
|||
) {
|
||||
this.loadMoreCursor = res.data.cursor
|
||||
this.hasMore = !!this.loadMoreCursor
|
||||
const orgLen = this.feed.length
|
||||
|
||||
const reorgedFeed = preprocessFeed(res.data.feed)
|
||||
|
||||
|
@ -458,7 +459,7 @@ export class FeedModel {
|
|||
this.feed = this.feed.concat(toAppend)
|
||||
}
|
||||
dedupReposts(this.feed)
|
||||
dedupParents(this.feed)
|
||||
dedupParents(this.feed.slice(orgLen)) // we slice to avoid modifying rendering of already-shown posts
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue