table demo示例中远程加载数据,第一次会出现两次请求的bug #48550
Labels
📝 Documentation
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Reproduction link
https://ant.design/components/table-cn#components-table-demo-ajax
Steps to reproduce
第一次进入页面会请求两次
What is expected?
请求一次
What is actually happening?
请求了两次
第一次请求完了,会设置tableParams,里面有个total参数肯定变了,导致在useEffect中又请求了一次。改一下依赖项就好了
The text was updated successfully, but these errors were encountered: