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

[FIX] Add debouncing to add users search field. #20297

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

Darshilp326
Copy link
Contributor

Proposed changes (including videos or screenshots)

Added debouncing to that search field so after every key stroke API is not called.

BEFORE

add-user-issue.mp4

AFTER

Add-user-pr.mp4

Issue(s)

Closes #20263

Steps to test or reproduce

Further comments

@dougfabris
Copy link
Member

dougfabris commented Jan 22, 2021

@Darshilp326 Very nice mate, thanks for that! I think, maybe 1000ms is too much long, can we try 500/600 ms?

@Darshilp326
Copy link
Contributor Author

@dougfabris I tried with 500ms but we usually have that much gap while typing.

@dougfabris dougfabris changed the title [IMPROVE]Added debouncing to that add users search field. [FIX] Add debouncing to add users search field. Jan 22, 2021
@ggazzo ggazzo merged commit fcfd1c6 into RocketChat:develop Feb 2, 2021
@sampaiodiego sampaiodiego mentioned this pull request Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Error, too many requests. Please slow down" on channel's add user
3 participants