fix(demo): optimize fetchData for table (#48560)

This commit is contained in:
thinkasany 2024-04-20 21:51:29 +08:00 committed by GitHub
parent 0bc2e3a838
commit f6db43b090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ const App: React.FC = () => {
useEffect(() => {
fetchData();
}, [JSON.stringify(tableParams)]);
}, [tableParams.pagination?.current, tableParams.pagination?.pageSize]);
const handleTableChange: TableProps['onChange'] = (pagination, filters, sorter) => {
setTableParams({