-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
setResults(data || []) | ||
} | ||
if (!handleInputChangeRef.current) { | ||
handleInputChangeRef.current = handleThrottle(async value => { |
There was a problem hiding this comment.
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 ^^
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this 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 => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.