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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user