IonInfiniteScroll problem if datasource reloaded

Ionic 5.0.7

Hi, the IonInfiniteScroll fail when the datasource is reloaded.

It saves his position and making the component unusable.

We have two Pages:

  1. Page A (a list of items loaded with infinitescrolling)
  2. Page B (a detail page of list item)

I was in page A and next, click to item and go to page B for details. When i return back to page A i need to “refresh” the datasource of the ngFor. When the datasource is refreshed, the infinite scroller doesn’t work anymore.

The offsetHeight variable appears to retain the value obtained before the refresh.

Can you help me?