Skip to content

Add useDebounce hook#6

Merged
gndelia merged 2 commits intomasterfrom
add-use-debounce
Feb 4, 2026
Merged

Add useDebounce hook#6
gndelia merged 2 commits intomasterfrom
add-use-debounce

Conversation

@gndelia
Copy link
Contributor

@gndelia gndelia commented Feb 4, 2026

Description

This PR adds the useDebounce hook. I went for a simpler implementation than the one in the portal that should achieve the same effect.

Checklist

  • Manual testing passed.
  • Automated tests added, or N/A.
  • Documentation updated, or N/A.
  • Environment variables set in CI, or N/A.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new useDebounce hook with a simpler implementation than the existing portal version, bumping the package to version 1.1.0.

Changes:

  • Added useDebounce hook that delays updating a value until after a specified delay period
  • Updated package version from 1.0.2 to 1.1.0 (minor version bump)
  • Added documentation entry for the new hook in README

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/useDebounce.ts New hook implementation that uses setTimeout to debounce value updates
package.json Version bump to 1.1.0 for the new feature
README.md Added useDebounce entry to the hooks table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gndelia gndelia merged commit 3dbf187 into master Feb 4, 2026
11 checks passed
@gndelia gndelia deleted the add-use-debounce branch February 4, 2026 23:07
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.

3 participants