Просмотр исходного кода

refactor useCallback dependency

yuken 3 лет назад
Родитель
Сommit
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) => {