ant-design / ant-design/pro-components
EditableProTable配合分页使用添加一行时出现异常🐛[BUG]
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
使用EditableProTable配合request异步请求接口,配合分页,往中间的页数添加一行时,页面显示为空
点击前

点击后

发现添加的这行跑到第二页

### 📷 复现步骤
复现地址https://codesandbox.io/s/yu-formitem-pei-he-forked-99xpqp?file=/App.tsx
Contributor guide
Research direction
Start with the reproduction in the linked CodeSandbox, especially App.tsx, and verify the behavior using EditableProTable with an asynchronous request and pagination. Compare adding a row on a middle page before and after the action. Done means the page remains populated and the added row stays on the intended page instead of moving to page two.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100