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

在缓存(使用react-virtualized库构建的虚拟列表)列表时,若多个页面来回切换,列表会重叠。 #28

Closed
biology-w opened this issue Jan 20, 2020 · 4 comments

Comments

@biology-w
Copy link

存在pageA, pageB两个页面,每个页面初始化时从服务器拉取数据,展示列表(使用react-virtualized库构建的虚拟列表)。现在有A,B两个按钮可点击分别跳转到pageA, pageB页面。若此时,快速连续在两个页面之间来回切换,等到数据返回后,展示列表时,列表样式发生重叠。

@CJY0208
Copy link
Owner

CJY0208 commented Feb 5, 2020

Hello,能否提供一个可复现的 demo 呢?

@CJY0208
Copy link
Owner

CJY0208 commented Jun 22, 2020

虚拟列表需求,依照 react-virtualized 作者建议,尝试使用 react-window 替代,也可与 react-activation 正常协作,参考此处 demo

或者使用 @umijs/hooks 中的 useVirtualList 亦可实现

@CJY0208
Copy link
Owner

CJY0208 commented Jul 31, 2020

暂时缺少反馈,closed

@CJY0208 CJY0208 closed this as completed Jul 31, 2020
@shuyanzi
Copy link

你解决了吗?我这边也有这个问题,但是不是必现的,很难查什么问题

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

No branches or pull requests

3 participants