diff --git a/features/comments/comment-list/comment-input.tsx b/features/comments/comment-list/comment-input.tsx index 0545938f..99cb262e 100644 --- a/features/comments/comment-list/comment-input.tsx +++ b/features/comments/comment-list/comment-input.tsx @@ -48,7 +48,13 @@ const CommentInput: FC = forwardRef( const onSuccess = async () => { await queryClient.invalidateQueries({ - queryKey: ['comments', slug], + queryKey: ['comments', slug, content_type], + exact: false, + }); + + await queryClient.invalidateQueries({ + queryKey: ['commentThread'], + exact: false, }); editorRef.current?.setMarkdown('');