refactor: remove unused dependency from useEffect in Messages component

This commit is contained in:
kangfenmao 2025-03-15 15:21:33 +08:00
parent a30cfb53bf
commit 43da80cba1

View File

@ -139,7 +139,7 @@ const Messages: React.FC<MessagesProps> = ({ assistant, topic, setActiveTopic })
return () => unsubscribes.forEach((unsub) => unsub())
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [assistant, dispatch, scrollToBottom, topic, updateTopic])
}, [assistant, dispatch, scrollToBottom, topic])
useEffect(() => {
runAsyncFunction(async () => {