Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antd table 进行列筛选时后,更新 columns, datasource, 导致页面显示错误 #38978

Closed
moling1234 opened this issue Nov 25, 2022 · 5 comments · Fixed by #38982
Closed

Comments

@moling1234
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1: 选择 Name \ Address 列进行筛选(这时是正确的)
2: 再点击 refresh ,页面显示无数据(这时是错的)

What is expected?

期望在点击 refresh 后,页面显示 name1 列,并显示4行数据

What is actually happening?

有 name1 列,但是没有数据

Environment Info
antd 5.0.1
React 18.0.0
System mac
Browser chrome 版本 107.0.5304.110(正式版本) (x86_64)

1: 在不进行列筛选,直接点击 refresh,显示是正确的
2: 经调试,原因是 filters 会被缓存
3: 期望在 columns 发生修改,清空 filters

@github-actions
Copy link
Contributor

You may look for issues:

  1. 56% Table Columns can't have dynamic filters #37962
  2. 56% How to render Radio in a table column antd #27947

🤖 By issues-similarity-analysis

@moling1234
Copy link
Author

You may look for issues:

  1. 56% Table Columns can't have dynamic filters #37962
  2. 56% How to render Radio in a table column antd #27947

🤖 By issues-similarity-analysis

那些解决方式解决不了这个问题

@moling1234 moling1234 reopened this Nov 25, 2022
@yoyo837
Copy link
Contributor

yoyo837 commented Nov 25, 2022

机器人留言是匹配相似issue, 不是解决方案.

@moling1234
Copy link
Author

机器人留言是匹配相似issue, 不是解决方案.

我知道,我只是回应一下,以上方案解决不了我的问题,然后有人来看

@moling1234
Copy link
Author

thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants