I am using the react typescript with ionic but I am having problems using the slides. I currently have two problems I want to trigger a function that saves the state using my save method when the slide changes but only the current slide not all of them. and the second problem is also when I reduce the size of the screen the slides disappear any help would be much appreciated
console.log(event.target)
let index: number = 0;
await event.target.getActiveIndex().then((value: any) => (index=value));
}
return (
<IonPage>
<DetailsModal/>
<IonSlides onIonSlideDidChange={(e)=>getIndex(e)}>
<IonSlide >
<house houseID={houseID} save={save}/>
</IonSlide>
<IonSlide >
<car carID={carID} save={save}/>
</IonSlide>