about summary refs log tree commit diff
path: root/src/state/models/feeds/posts-slice.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-08 11:34:19 -0700
committerGitHub <noreply@github.com>2023-08-08 11:34:19 -0700
commit3c29a1be4d1bd9fb707cb05a8464ca7a094dd8e0 (patch)
tree9684c4a1c7e015d3cc40894c87fa2eeb7e651f54 /src/state/models/feeds/posts-slice.ts
parent872a7f93f4a2d1b0fe5050f85984f3b7d5215eae (diff)
downloadvoidsky-3c29a1be4d1bd9fb707cb05a8464ca7a094dd8e0.tar.zst
Fix to react-key uniqueness in feeds (#1136)
Diffstat (limited to 'src/state/models/feeds/posts-slice.ts')
-rw-r--r--src/state/models/feeds/posts-slice.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/models/feeds/posts-slice.ts b/src/state/models/feeds/posts-slice.ts
index d20c23b9c..16e4eef15 100644
--- a/src/state/models/feeds/posts-slice.ts
+++ b/src/state/models/feeds/posts-slice.ts
@@ -11,7 +11,7 @@ export class PostsFeedSliceModel {
   items: PostsFeedItemModel[] = []
 
   constructor(public rootStore: RootStoreModel, slice: FeedViewPostsSlice) {
-    this._reactKey = `slice-${slice.uri}`
+    this._reactKey = slice._reactKey
     for (let i = 0; i < slice.items.length; i++) {
       this.items.push(
         new PostsFeedItemModel(