PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.67k stars 370 forks source link

Add validator not to same page request #198

Closed Akari1987 closed 6 years ago

Akari1987 commented 6 years ago

Hi thanks for great plugin! I have same page request issue when the response is only one and need to add some processes to rendering it. Duplicate request may be caused before rendering response. So this issue may occur by browser processing power or network speed. To avoid it, could you add request validator not to same page request. Sorry for my wrong English. Best regards.

https://codepen.io/irakaarozo/pen/eQNvQX

PeachScript commented 6 years ago

Does it duplicate with #189 ?

Akari1987 commented 6 years ago

Sorry for my misunderstood and not accurate reproduction. My issue occurred by getting distance process. Duplicate request only occurred when scroll down and click router-link (vue-router) and new page init infiniteHandler. On the top of page, it does't occurred. So adding forceUseInifiniteWrapper, everything works well!! image

Thanks for useful props!!