refactor: useRequest2 -> useRequest (#6333)

This commit is contained in:
Finley Ge
2026-01-29 09:58:39 +08:00
committed by GitHub
parent cebfda4651
commit cdb896ebf9
203 changed files with 709 additions and 715 deletions
@@ -20,7 +20,7 @@ import {
} from '@chakra-ui/react';
import type { ButtonProps, MenuItemProps } from '@chakra-ui/react';
import MyIcon from '../Icon';
import { useRequest2 } from '../../../hooks/useRequest';
import { useRequest } from '../../../hooks/useRequest';
import MyDivider from '../MyDivider';
import type { useScrollPagination } from '../../../hooks/useScrollPagination';
import Avatar from '../Avatar';
@@ -143,7 +143,7 @@ const MySelect = <T = any,>(
}
}, [isSearch, isOpen]);
const { runAsync: onClickChange, loading } = useRequest2((val: T) => onChange?.(val));
const { runAsync: onClickChange, loading } = useRequest((val: T) => onChange?.(val));
const ListRender = useMemo(() => {
return (