refactor: remove unused dependency from useEffect in Messages component
This commit is contained in:
parent
a30cfb53bf
commit
43da80cba1
@ -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 () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user