Merge remote-tracking branch 'upstream/feat/rag-2' into feat/rag-2

This commit is contained in:
QuantumGhost
2025-09-16 15:06:38 +08:00
8 changed files with 30 additions and 9 deletions

View File

@ -44,7 +44,7 @@ const List = ({
observerRef.current.observe(anchorRef.current)
}
return () => observerRef.current?.disconnect()
}, [anchorRef, isLoading])
}, [anchorRef, isLoading, dataSourceStore])
const isAllLoading = isLoading && fileList.length === 0 && keywords.length === 0
const isPartialLoading = isLoading && fileList.length > 0

View File

@ -51,7 +51,7 @@ const Datasets = ({
observerRef.current.observe(anchorRef.current)
}
return () => observerRef.current?.disconnect()
}, [anchorRef])
}, [anchorRef, hasNextPage, isFetching, fetchNextPage])
return (
<>