-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
The q-infinite-scroll fire once or all, but not for each scroll #2863
Comments
At the time I'm writing this, it's clear in the docs that |
The problem is that with inline it load everything in one go. I can stop at the first load but then I don't get more data anymore. What I'm expecting is that, if I have 1000 items and each slice is of 100: 1- Page show, load first slice. |
I can't see why it would load everything in one go. You control the ajax request, you should know how many items you load. Use console.log to understand how many calls to loadMore are done. I think there is no issue with the component here, you need to debug and come back with clearer details on what would be wrong. |
Not sure, but maybe this will help with you with figuring out the loading handler logic. http://jsfiddle.net/smolinari/3f41720v/ Scott |
Put inline on http://jsfiddle.net/smolinari/3f41720v/ and see how it keep loading data ad-infinitum. That is a weird behavior. |
You have to use inline when the scroll container is not the window. In other cases I'm not surprises to see "weird" behavior. |
The problem is that without inline is not requested more data after the first load. |
It seems to me that you need to close this issue and either spend more time debugging or ask for help in a forum. Issues here are for clear bug reports, which is unfortunately not the case here. |
This is a continuation of #135. I try to implement a partial load for a large list. With this layout:
And the behavior is very strange. When inline is present, it load up to the end of the list (ie: Continue to call loadMore until is exhausted with done(true)). When not, it only fire once (when page load). It load enough data to fill the screen in first request.
Is not explained in the docs you need to put
done(true)
to stop more request. So, I have the logic for check if I get less items than requested to stop the method.The text was updated successfully, but these errors were encountered: