Skip to content

fix: debounce AudioInvoiceList search input (#971) - #1015

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
shogun444:fix/debounce-audio-invoice-search
Jul 27, 2026
Merged

fix: debounce AudioInvoiceList search input (#971)#1015
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
shogun444:fix/debounce-audio-invoice-search

Conversation

@shogun444

Copy link
Copy Markdown
Contributor

Description

Debounce the search input in AudioInvoiceList to improve performance while keeping the input responsive.

This change introduces a local search state backed by the existing useDebounce hook (300ms). The search field updates immediately as the user types, while onFilterChange is only triggered after the debounce delay. The local state also stays synchronized with external changes to filter.search (such as when filters are cleared), and redundant filter updates are avoided by checking whether the debounced value has actually changed.

Related Issue

Closes #971

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • Uses Lucide icons consistently (no changes required)
  • Responsive design implemented (no UI/layout changes)
  • Starknet best practices followed (not applicable to this change)

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@shogun444 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

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project

@RUKAYAT-CODER
RUKAYAT-CODER merged commit c65720f into rinafcode:main Jul 27, 2026
6 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.

Debounce the AudioInvoiceList search input

2 participants