From e5b4cb28fef9f7e1f9b130ed0c0a9ca07927adb8 Mon Sep 17 00:00:00 2001 From: leedom Date: Fri, 7 Apr 2023 12:39:27 +0800 Subject: [PATCH] fix: useEffect hooks --- app/components/chat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index b3b8fb01e..689b427a0 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -522,7 +522,8 @@ export function Chat(props: { // Textarea Adaptive height useEffect(() => { resizeTextarea(); - }); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [userInput]); return (