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())
|
return () => unsubscribes.forEach((unsub) => unsub())
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [assistant, dispatch, scrollToBottom, topic, updateTopic])
|
}, [assistant, dispatch, scrollToBottom, topic])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
runAsyncFunction(async () => {
|
runAsyncFunction(async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user