Safeguard posts from clobbered state (#3006)

zio/stable
dan 2024-02-28 00:48:54 +00:00 committed by GitHub
parent 6bd68e5321
commit 603f3c0be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,8 @@ export function PostThreadItem({
if (richText && moderation) { if (richText && moderation) {
return ( return (
<PostThreadItemLoaded <PostThreadItemLoaded
// Safeguard from clobbering per-post state below:
key={postShadowed.uri}
post={postShadowed} post={postShadowed}
prevPost={prevPost} prevPost={prevPost}
nextPost={nextPost} nextPost={nextPost}

View File

@ -70,6 +70,8 @@ export function FeedItem({
if (richText && moderation) { if (richText && moderation) {
return ( return (
<FeedItemInner <FeedItemInner
// Safeguard from clobbering per-post state below:
key={postShadowed.uri}
post={postShadowed} post={postShadowed}
record={record} record={record}
reason={reason} reason={reason}