Perf: switch to stable react keys (#1113)

This commit is contained in:
Paul Frazee 2023-08-05 11:29:55 -07:00 committed by GitHub
parent d53cbb91bb
commit 89fc975a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 21 deletions

View file

@ -28,10 +28,10 @@ export class PostsFeedItemModel {
constructor(
public rootStore: RootStoreModel,
reactKey: string,
_reactKey: string,
v: FeedViewPost,
) {
this._reactKey = reactKey
this._reactKey = _reactKey
this.post = v.post
if (FeedPost.isRecord(this.post.record)) {
const valid = FeedPost.validateRecord(this.post.record)