mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
fix(demo): optimize fetchData for table (#48560)
This commit is contained in:
parent
0bc2e3a838
commit
f6db43b090
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user