Browse Source

Fix dep array

Saoud Rizwan 1 năm trước cách đây
mục cha
commit
1602ecfe67
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      webview-ui/src/components/ChatView.tsx

+ 8 - 1
webview-ui/src/components/ChatView.tsx

@@ -319,7 +319,14 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
 			}
 			// textAreaRef.current is not explicitly required here since react gaurantees that ref will be stable across re-renders, and we're not using its value but its reference.
 		},
-		[isHidden, textAreaDisabled, enableButtons]
+		[
+			isHidden,
+			textAreaDisabled,
+			enableButtons,
+			handleSendMessage,
+			handlePrimaryButtonClick,
+			handleSecondaryButtonClick,
+		]
 	)
 
 	useEvent("message", handleMessage)