In ant.design, how to reset the paging to the first page when the data changes?

problem description

when RT: recently used antd, there is a table on the page. The following is the paging that comes with it. When a button is clicked, the data of the form is updated, but the paging button does not return to the first page and remains in the previous position

.

the figure is as follows:

clipboard.png

1

:

react-router v4 url


--------------------------------------------------------------------

antd

 

The

data is switched, but the paging is still on page 2 .

Ultimate question:

to put it this way, it means that in react, when we do an operation, this returns the component to its original state.
if you can, use the above example to analyze it.
Thank you
for being tired.


thanks for the invitation. Table supports pagination interface. You need to add the pagination attribute to state and control it, and then pass it to table props. After updating the data, classify pagination.current as 1 . The description of this document is indeed a little vague, and it took several times to understand it at that time.


if you don't post the code, shall we help you fix it


encounter the same problem? how do you solve it

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3990e-43a8c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3990e-43a8c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?