Ioninifinite method is called twice and renders duplicate data


Hi i am using ion-infinite-scroll to render list of post from database however the ioninifinite method gets called twice and renders duplicate data for the first time however it doesn’t happens if scroll event is slow can anyone suggest me why this happens?

do infinite method
doInfinite(infiniteScroll) {
setTimeout(() => {
console.log(‘scroll fn called’);
}, 1000);


any news? same problem here


I fixed the issue by using promises and called the infinitescroll.complete() method after making api calls