# Infininte scroll not working after disabled then enable again

**URL:** <https://forum.ionicframework.com/t/infininte-scroll-not-working-after-disabled-then-enable-again/193633>\
**Category:** Ionic Angular\
**Created:** [July 29, 2020, 11:23am UTC](https://forum.ionicframework.com/t/infininte-scroll-not-working-after-disabled-then-enable-again/193633 "2020-07-29T11:23:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![freshbie](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@freshbie](https://forum.ionicframework.com/u/freshbie)\
**Post date:** [July 29, 2020, 11:23am UTC](https://forum.ionicframework.com/t/infininte-scroll-not-working-after-disabled-then-enable-again/193633/1 "2020-07-29T11:23:29Z")

</div>

I am using ionic 5 and i am using ion-refresher and ion-infinite-scroll in one page.  
when i tried to scroll new set of document is showing for the first time.But after i use the refresher infinite scroll is not working.i enabled it back after refresh

```auto
loadMoreData(event) 
// calling api here after success 
      event.target.complete();
// this is based on condition ( if array.length reaches the total number of pages)
      ithis.infiniteScroll.disabled = true;
}

doRefresh(){
  this.infiniteScroll.disabled = false;
// calling api again here
 
}

Please help

```

---

<div class="post-metadata">

**Author:** ![freshbie](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@freshbie](https://forum.ionicframework.com/u/freshbie)\
**Post date:** [July 30, 2020, 6:51am UTC](https://forum.ionicframework.com/t/infininte-scroll-not-working-after-disabled-then-enable-again/193633/2 "2020-07-30T06:51:57Z")

</div>

when i changed the limit. it worked
