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(() => {
this.getPosts();
console.log(‘scroll fn called’);
infiniteScroll.complete();
}, 1000);
}