moritz-schuessler / shuffle-it

Alternative Spotify-UI that adds functionality to shuffle saved albums
https://shuffle-it.moritzschuessler.dev/
0 stars 0 forks source link

Debounce Requests for changing Playback #19

Closed moritz-schuessler closed 8 months ago

moritz-schuessler commented 9 months ago

Issue

Multiple requests for playback changes can be sent to the API, causing unnecessary calls to the Spotify Api and impacting the user experience.

Proposed Solution

Implement a debounce mechanism that disables a button when a requests is send. The button should get clickable again when there is a response from the API and after a specified time frame.

moritz-schuessler commented 8 months ago

A time based debounce doesn't seem to be necessary