Kaynağa Gözat

refactor useCallback dependency

yuken 3 yıl önce
ebeveyn
işleme
0fb674babb

+ 2 - 1
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -189,8 +189,9 @@ const CommentEditor = (props: PropsType): JSX.Element => {
       setError(errorMessage);
     }
   }, [
-    comment, currentCommentId, commentCreator, initializeEditor,
+    comment, currentCommentId, initializeEditor,
     isSlackEnabled, onCommentButtonClicked, replyTo, slackChannels,
+    postComment, revisionId, updateComment,
   ]);
 
   const ctrlEnterHandler = useCallback((event) => {