From 2f94cb34f6003c9c9939f8a0232cfb83ba10f6aa Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 16 Feb 2024 17:36:46 +0800 Subject: [PATCH] Fix post content not updating when changed --- src/components/status.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index dca86bea..f11376d3 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -137,9 +137,9 @@ const PostContent = memo( ); }, (oldProps, newProps) => { - const { content: oldContent } = oldProps; - const { content: newContent } = newProps; - return oldContent === newContent; + const { post: oldPost } = oldProps; + const { post: newPost } = newProps; + return oldPost.content === newPost.content; }, );