updated state on comments prop update

This commit is contained in:
noumantahir 2022-03-02 13:54:56 +05:00
parent f69b70ced3
commit 116148b82a

View File

@ -65,6 +65,10 @@ const CommentsContainer = ({
setLComments(shortedComments);
}, [commentCount, selectedFilter]);
useEffect(() => {
setPropComments(comments);
}, [comments]);
useEffect(() => {