Fix searchable dropdown race condition when typing fast
What does this MR do and why?
Fix searchable dropdown race condition when typing fast
The debounce function was incorrectly created on every keystroke, causing multiple API calls and stale results. Now the debounced function is created once in created() and reused. I also added a spec to test the gap we had here.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Visit the search page
http://127.0.0.1:3000/search - search and try to filter results by group or project
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Tomas Bulva

