fix: completion response handler

This commit is contained in:
jialin
2024-06-29 21:39:55 +08:00
parent d47e53114c
commit afb2a13b80
12 changed files with 57 additions and 39 deletions
+5 -4
View File
@@ -374,14 +374,15 @@ const Models: React.FC = () => {
fetchData();
// createModelsDataByFetch();
createModelEvent();
createModelsChunkRequest();
return () => {
chunkRequedtRef.current?.current?.cancel?.();
};
}, [queryParams]);
useEffect(() => {
// watch models list
createModelsChunkRequest();
return () => {
chunkRequedtRef.current?.current?.cancel?.();
};
}, [queryParams]);
const renderChildren = (list: any) => {