mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
fix abort
This commit is contained in:
@@ -41,9 +41,11 @@ export default function Conversation() {
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
fetchStream.current && fetchStream.current.abort(); //abort previous stream
|
||||
if (status !== 'idle') {
|
||||
fetchStream.current && fetchStream.current.abort(); //abort previous stream
|
||||
}
|
||||
}
|
||||
}, [conversationId])
|
||||
}, [status])
|
||||
useEffect(() => {
|
||||
const observerCallback: IntersectionObserverCallback = (entries) => {
|
||||
entries.forEach((entry) => {
|
||||
|
||||
Reference in New Issue
Block a user