Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debounce slider #615

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Debounce slider #615

merged 2 commits into from
Nov 28, 2024

Conversation

dcts
Copy link
Contributor

@dcts dcts commented Nov 28, 2024

Fixes one issue of #610 , where the slider did cause the UI to randomly change values, becuase there were a ton of requests to getQuote lined up (on every change of the slider, so for 1 slide you would get like 20-50 requests). This is also leading to extensive data usage and slows down UX.

This fix solves that issue by adding a debounce of 350ms to all slider actions, meaning the slider will call getQuote only after it hasnt been touched for 350ms.

@dcts dcts requested a review from a team as a code owner November 28, 2024 10:22
@Radstakes Radstakes merged commit 93f0f6d into main Nov 28, 2024
2 checks passed
@Radstakes Radstakes deleted the debounce-slider branch November 28, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants