Fix to "Load new posts" showing sometimes when there's nothing new to show (#1191)

* Fix to feed item react key value (hopefully)

* Fix false-firing of load more (close #1028)
This commit is contained in:
Paul Frazee 2023-08-16 10:00:22 -07:00 committed by GitHub
parent b0282865fa
commit 884e5c9294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -18,8 +18,8 @@ export class FeedViewPostsSlice {
constructor(public items: FeedViewPost[] = []) {}
get _reactKey() {
return `slice-${this.rootItem.post.uri}-${
this.rootItem.reason?.indexedAt || this.rootItem.post.indexedAt
return `slice-${this.items[0].post.uri}-${
this.items[0].reason?.indexedAt || this.items[0].post.indexedAt
}`
}