Skip to content

Commit

Permalink
fix(demo): optimize fetchData for table (#48560)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Apr 20, 2024
1 parent 0bc2e3a commit f6db43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/demo/ajax.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f6db43b

Please sign in to comment.