소스 검색

refactor useCallback dependency

yuken 3 년 전
부모
커밋
0fb674babb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/app/src/components/PageComment/CommentEditor.tsx

+ 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) => {