We have an app that pulls users schedules on a per day basis. They can side scroll through days and on each scroll stop it fires the http.get
and grabs the schedule for that day.
The problem we have run into is people scrolling, lifting their finger and continuing scrolling. We implemented a timeout so there is a delay between slide stop and the request firing, but we can't make that too long and still a number of http.get
requests are fired.
I need a way to cancel any pending HTTP requests on the start of a new one.
slideStop() {
..gather date information and other relevant parameters..
<stop any pending HTTP requests>
this.http.get()
}