Explorar o código

fix: useEffect hooks

leedom %!s(int64=2) %!d(string=hai) anos
pai
achega
e5b4cb28fe
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/components/chat.tsx

+ 2 - 1
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 (
     <div className={styles.chat} key={session.id}>