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

为 Backlog 启用边滚动边加载 #595

Open
MakinoharaShoko opened this issue Nov 30, 2024 · 1 comment
Open

为 Backlog 启用边滚动边加载 #595

MakinoharaShoko opened this issue Nov 30, 2024 · 1 comment
Assignees

Comments

@MakinoharaShoko
Copy link
Member

Backlog 一次性展示大量内容会导致性能上的严重问题。解决的方案就是以 20 条每次的方式逐步加载,当用户向上滑动的时候,再在合适的时机(比如最后一条在屏幕中展示时),再加载20条。避免由于频繁打开和关闭 Backlog 导致的性能问题。

为什么采用这样的方案:大多数用户并不会浏览太多条 Backlog,而滚动加载也给那些想要看更多历史对话的用户一个选择的权利。

@MakinoharaShoko
Copy link
Member Author

当然,也包括一些其他的优化,比如优化 useMemo

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

No branches or pull requests

1 participant