pref: useScrollPagination support debounce and throttle. (#4355)

* pref: useScrollPagination support debounce and throttle.

* fix: useScrollPagination loading

* fix: isloading

* fix: org search path hide
This commit is contained in:
Finley Ge
2025-03-27 15:58:13 +08:00
committed by GitHub
parent 8b29aae238
commit e9f75c7e66
9 changed files with 68 additions and 87 deletions

View File

@@ -48,14 +48,14 @@ export function ChangeOwnerModal({
{
pageSize: 20,
params: {
searchKey: searchKey
}
searchKey
},
refreshDeps: [searchKey],
debounceWait: 200,
throttleWait: 500
}
);
const search = _.debounce(refreshList, 500);
useEffect(() => search, [searchKey]);
const {
isOpen: isOpenMemberListMenu,
onClose: onCloseMemberListMenu,