Sencha Premium User
Infinite scrolling problems after reloading the remote store
I have been working with infinite scrolling for a while with version 4.2.1 and I have noticed some strange behaviour when I perform store.reload() using a remote store. The errors I find are sometimes "PageMap asked for range which it does not have" and other times just get blocked with the icon loading and you can not continue working, the thing is that this happen randomly.
I migrated to version 126.96.36.1996 and the problem about the "PageMap asked for range which it does not have" has almost desapeared but I found another problems which are when you scroll quickly to the last page and invokes the store.reload() and the result from the server has changed for example different total count because there are serveral new rows, in this case I get sometimes "Uncaught TypeError: Cannot read property 'length' of undefined" and other times it just loads correctly but scroll to the first page.
I wonder if someone in the community has encountered the same problems because for me I can not trust on the store.reload() method and if there is a workaround to avoid using this method and loads the correct pages in a buffered stored with infinite scrolling.
Thank in advance.
I couldn't find reports of that exact situation, but I can tell you there have been a considerable amount of bug fixes since 188.8.131.526, so you might try your code against the latest (184.108.40.2067) and see if you can still reproduce.
Join me at SenchaCon 2016!
Sencha Premium User
Thank you Gary, I will upgrade as soon as possible and give you feedback about it.
Sencha Premium Member
I think a fix for the records being undefined will help your situation, i'm pretty sure we are talking about the same thing:
And as for the store loading the first page incorrectly, I've been seeing it since 4.2.0, and i am not aware of the workaround or a proposed fix still:
Not much help, but at least you know it's not just you.
Tags for this Thread