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

feat: add throttle on search component #552

Merged
merged 4 commits into from
Mar 19, 2020
Merged

feat: add throttle on search component #552

merged 4 commits into from
Mar 19, 2020

Conversation

guillaumewttj
Copy link
Contributor

No description provided.

setResults(data || [])
}
if (!handleInputChangeRef.current) {
handleInputChangeRef.current = handleThrottle(async value => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il n'y a pas moyen de faire cela en interne sans passer par lodash ? :)
il faudrait aussi tester car ce genre de composant est assez sensible ^^

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pour le throttle custom c'est good,
Pour les tests j'en ai pas rajouté car la partie que touche l'improvment est couvert par

shows options when searching

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@theo-mesnil theo-mesnil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

setResults(data || [])
}
if (!handleInputChangeRef.current) {
handleInputChangeRef.current = handleThrottle(async value => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@P1X3L P1X3L merged commit 74be777 into master Mar 19, 2020
@P1X3L P1X3L deleted the feat-throttle-search branch March 19, 2020 15:51
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.

4 participants