Skip to content

添加之后,不停地调用加载方法 #35

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

Open
andylei18 opened this issue Nov 17, 2016 · 3 comments
Open

添加之后,不停地调用加载方法 #35

andylei18 opened this issue Nov 17, 2016 · 3 comments

Comments

@andylei18
Copy link

规律是每次请求回来的list如果是空就会触发无限加载。

@foreverglory
Copy link

一样,我在请求为空后,并设置 infinite-scroll-disabled 为 true,还是会不停的请求

@Leopoldthecoder
Copy link
Contributor

试了一下,似乎设置 infinite-scroll-disabled 为 true 之后就不会请求了:http://jsfiddle.net/leopoldthecuber/8ggrk23z/

如果有问题,请提供 demo。

@wengcd
Copy link

wengcd commented Dec 22, 2016

调用方法别带括号

tianjianchn added a commit to tianjianchn/vue-infinite-scroll that referenced this issue Oct 10, 2017
修复以下情况下会导致无限调用 loadMore 的情况:
1. 当调用 loadMore,产生新的高度变化,但是这个高度不够 infinite-scroll-distance 时,导致再次调用 loadMore
2. 当调用 loadMore 时,由于底部有加载动作条渲染,而实际上又没有新的数据(比如接口返回零行),导致无限调用 loadMore

ElemeFE#35
ElemeFE#18
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

4 participants