Fix post content not updating when changed
This commit is contained in:
parent
b7a79c8fdd
commit
2f94cb34f6
|
@ -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;
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue