mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	fix: useEffect hooks
This commit is contained in:
		@@ -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}>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user