1
0
Fork 0

Fix post content not updating when changed

This commit is contained in:
Lim Chee Aun 2024-02-16 17:36:46 +08:00
parent b7a79c8fdd
commit 2f94cb34f6

View file

@ -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;
},
);