Skip to content

Commit

Permalink
fix(demo): optimize fetchData for table (ant-design#48560)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany authored and Enigama committed Apr 20, 2024
1 parent ece2dad commit fac4ba2
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 fac4ba2

Please sign in to comment.