[Slides] How to make Infinity Slides in ionic?(with dynamic content)

I want to have a view, where I can swipe right and left to navigate in dynamic content.
My current approach:
I have 3 slides in a loop on Sliding I change the data to match the new positions.
My data is stored in an array like

weeks = [
 week1,
 week2,
 week3
];

It somewhat works, but on looping it displays old data ( when i touch it it refreshes to the real data ).

My questions are now:

  1. does anyone have successfuly made an infinity slide with dynamic content?
  2. do you have any working examples on this topic?

PS: only the visuals are buged -> my code seems to work properly.

My simplfied code:

<ion-slides (ionSlideDidChange)="slideChanged()">
    <ion-slide>
      1|{{i}}
    </ion-slide>
    <ion-slide>
      2|{{i}}
    </ion-slide>
    <ion-slide>
      3|{{i}}
    </ion-slide>
  </ion-slides>
  slideChanged() {
    let cI = this.slides.getActiveIndex();
    let pI = this.slides.getPreviousIndex();
    if (
      (pI == 1 && cI == 2 ) ||
      (pI == 2 && cI == 3 ) ||
      (pI == 3 && cI == 4 )
    ){
      //going forward
      console.log("->");
      this.i++;
    } else if (
      (pI == 1 && cI == 0 ) ||
      (pI == 2 && cI == 1 ) ||
      (pI == 3 && cI == 2 )
    ){
      //going back
      console.log("<-");
      this.i--;
    }
}

Is there better way to get the direction?

It resets the displayed data when looping:

:

swiping right-> 14after touching it19
the first number is the real slide number and the second is i

Did you ever resolve this?

I don’t worked on it so I cant tell

I’m also intereted on it
Is out there any solution?
Thanks