diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-16 10:00:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 10:00:22 -0700 |
commit | 884e5c92944a4d53c7e0d2847eabd576b080b4ae (patch) | |
tree | 2846291e017cd24657f1c84e4a219caa481b3a88 /src/lib/api/feed-manip.ts | |
parent | b0282865faf3d2576c0145281905b098c71a5e7b (diff) | |
download | voidsky-884e5c92944a4d53c7e0d2847eabd576b080b4ae.tar.zst |
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)
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r-- | src/lib/api/feed-manip.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index d2bbb4e83..472289b40 100644 --- a/src/lib/api/feed-manip.ts +++ b/src/lib/api/feed-manip.ts @@ -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 }` } |