PDA

View Full Version : Double calls to infinite-list scrolling grid



whatevernot
19 May 2011, 5:46 AM
Hello - I'm getting the infinite-scroll example working on my own data, and have some debug statements to see what requests are made. When I scroll, I see requests to the server like:

limit: 200 page: 65 start: 12800 total: 50000
limit: 200 page: 64 start: 12600 total: 50000
...
limit: 200 page: 142 start: 28200 total: 50000
limit: 200 page: 143 start: 28200 total: 50000

So scrolling down to a point in the list results in two requests in succession, and seemingly they are always one apart (eg. 65/64, 142/143).

Seems like a possible performance bug - can anyone delve into this - looks like two calls being made when one would suffice (?).

Thanks - everything otherwise working awesome.