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.
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.