Skip to content

Reuse the shared debounce utility in the search-filters hook #1293

Description

@RUKAYAT-CODER

Background

The search filters hook `src/hooks/useSearchFilters.tsx` debounces updates with an ad-hoc `setTimeout`, duplicating logic that already exists as a shared `debounce` helper in `src/utils/formUtils.ts`. Replace the inline timer with the shared utility so debounce behaviour is consistent and cancellation is handled in one place.

Files to modify (2)

  • src/hooks/useSearchFilters.tsx
  • src/utils/formUtils.ts

Acceptance Criteria

  • Implemented across the listed files
  • Unit/integration tests added or updated and passing
  • No regression; follows project coding standards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions