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

[Feature Request] useLoadMore 支持不清空 dataList 从第一页重新加载数据 #36

Closed
keuby opened this issue Apr 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@keuby
Copy link

keuby commented Apr 17, 2021

需求描述 Feature Description

useLoadMore 使用时,每次下拉刷新调用 reload 方法都会清空掉 dataList 数据重新加载,但是在大多数情况下,下拉刷新的操作数据其实不会变化,这样每次下拉刷新列表操作都会闪动一下(数据消失,接口调用成功之后再展示相同的内容),比较影响用户体验

建议的解决方案 Proposed Solution

建议新增一个 refresh 方法,覆盖掉现有的 refresh 方法用来做下拉刷新,该方法调用后,重新从第一页加载数据的同时不会清空掉 dataList 的内容,而是在接口调用成功之后直接替换掉 dataList 的原有内容

@John60676 John60676 added the enhancement New feature or request label Apr 17, 2021
@John60676
Copy link
Member

这个提议好 👍

@John60676
Copy link
Member

John60676 commented Apr 19, 2021

已发布 v1.1.0

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

No branches or pull requests

2 participants