Skip to content

fix(search): add proper debouncing to prevent excessive API calls#232

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
marvelousufelix:fix/search-debounce
Apr 27, 2026
Merged

fix(search): add proper debouncing to prevent excessive API calls#232
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
marvelousufelix:fix/search-debounce

Conversation

@marvelousufelix
Copy link
Copy Markdown
Contributor

closes #224

  • Cancel pending timer on each keystroke using useRef
  • Set isLoading=true immediately on input for instant feedback
  • Execute filtering only after 300ms debounce settles
  • Show inline spinner in SearchBar during debounce delay
  • Hide clear button while loading to avoid layout shift

Closes #search-debounce

Summary

Related Issue

Closes #

Type of change

  • Feature
  • Bug fix
  • Chore / Refactor
  • Docs

Screenshots / Recording (if UI)

Testing

  • npm run type-check
  • npm run lint
  • npm run test
  • npm run build

Quality gate checklist

  • CI checks pass (Frontend CI)
  • At least 1–2 approvals (per branch protection rules)
  • Branch is up-to-date with the base branch
  • All conversations resolved
  • PR description includes Closes #<issue-number>

- Cancel pending timer on each keystroke using useRef
- Set isLoading=true immediately on input for instant feedback
- Execute filtering only after 300ms debounce settles
- Show inline spinner in SearchBar during debounce delay
- Hide clear button while loading to avoid layout shift

Closes #search-debounce
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 27, 2026

@marvelousufelix Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER RUKAYAT-CODER merged commit 7d6a188 into rinafcode:main Apr 27, 2026
1 of 4 checks passed
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.

Search Debouncing Issues

2 participants