mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 01:48:50 +01:00
Fix post content not updating when changed
This commit is contained in:
parent
b7a79c8fdd
commit
2f94cb34f6
1 changed files with 3 additions and 3 deletions
|
@ -137,9 +137,9 @@ const PostContent = memo(
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
(oldProps, newProps) => {
|
(oldProps, newProps) => {
|
||||||
const { content: oldContent } = oldProps;
|
const { post: oldPost } = oldProps;
|
||||||
const { content: newContent } = newProps;
|
const { post: newPost } = newProps;
|
||||||
return oldContent === newContent;
|
return oldPost.content === newPost.content;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue