tinderjs / tinder-desktop

Use Tinder from your desktop, for Mac OS X, Microsoft Windows and Linux
https://tinderjsblog.herokuapp.com/
97 stars 25 forks source link

Last swipe is lost when navigating to another page #100

Open stuwil opened 8 years ago

stuwil commented 8 years ago

Each pass/like action on the swipe page is held in a queue until either the next swipe action, or 10 seconds passes, at which point the API call will be made. When you navigate to another page though, this queue is not flushed, and the API call for your last swipe is never made.

We should flush the queue when navigating to another page (and, if possible, when closing the app).