diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-05 11:29:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 11:29:55 -0700 |
commit | 89fc975a150d8c1f79d2a728f9f252fc3438a613 (patch) | |
tree | 251887b1eb13fbbeac74b0b4a43bbba2376fe0b2 /src/state/models/feeds/posts.ts | |
parent | d53cbb91bb91fe3da360c22b2dbd966b9bc39a83 (diff) | |
download | voidsky-89fc975a150d8c1f79d2a728f9f252fc3438a613.tar.zst |
Perf: switch to stable react keys (#1113)
Diffstat (limited to 'src/state/models/feeds/posts.ts')
-rw-r--r-- | src/state/models/feeds/posts.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts index e5d2eba07..bc1227fd6 100644 --- a/src/state/models/feeds/posts.ts +++ b/src/state/models/feeds/posts.ts @@ -13,7 +13,6 @@ import {PostsFeedSliceModel} from './posts-slice' import {track} from 'lib/analytics/analytics' const PAGE_SIZE = 30 -let _idCounter = 0 type QueryParams = | GetTimeline.QueryParams @@ -368,11 +367,7 @@ export class PostsFeedModel { const toAppend: PostsFeedSliceModel[] = [] for (const slice of slices) { - const sliceModel = new PostsFeedSliceModel( - this.rootStore, - `item-${_idCounter++}`, - slice, - ) + const sliceModel = new PostsFeedSliceModel(this.rootStore, slice) toAppend.push(sliceModel) } runInAction(() => { |