Skip to content
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

Add useDebounceFn hook #318

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Add useDebounceFn hook #318

merged 1 commit into from
Dec 31, 2024

Conversation

juancwu
Copy link
Contributor

@juancwu juancwu commented Dec 30, 2024

Description

Add the debounce hook. This hook can be used to debounce any callback function and specially useful for searching.

Linked Issues

Testing

  • Add test for the useDebounceFn hook in hooks/tests/useDebounceFn.test.ts

Checklist

Before opening this PR, make sure the PR:

  • Has an assignee or group of assignees.
  • Has a reviewer or a group of reviewers.
  • Is labelled properly.
  • Has the SPUR project assigned to it.
  • Has an assigned milestone.

Additionally, make sure that:

  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@juancwu juancwu added enhancement New feature or request frontend Related to the frontend of the project react-hook React Hooks labels Dec 30, 2024
@juancwu juancwu added this to the Complete the project MVP milestone Dec 30, 2024
@juancwu juancwu self-assigned this Dec 30, 2024
@juancwu juancwu linked an issue Dec 30, 2024 that may be closed by this pull request
4 tasks
Copy link
Member

@AmirAgassi AmirAgassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@juancwu juancwu merged commit d8b365d into main Dec 31, 2024
4 checks passed
@juancwu juancwu deleted the feat/317/debounce-hook branch December 31, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Related to the frontend of the project react-hook React Hooks
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FE Feat] Add a debounce hook
2 participants