Skip to content

feat(useCountdown): add useCountdown hook #233

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeongHwan-dev
Copy link
Contributor

@JeongHwan-dev JeongHwan-dev commented May 7, 2025

Overview

Add useCountdown hook: useCountdown is a React hook that manages a countdown timer with precise control. It provides functions to start, pause, resume, and reset the countdown. The hook tracks the current count value and supports both incrementing and decrementing modes.

Checklist

  • Did you write the test code?
  • Have you run yarn run fix to format and lint the code and docs?
  • Have you run yarn run test:coverage to make sure there is no uncovered line?
  • Did you write the JSDoc?

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c76f1fe) to head (3eab881).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #233   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        34    +1     
  Lines          839       884   +45     
  Branches       254       265   +11     
=========================================
+ Hits           839       884   +45     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@seungrodotlee
Copy link
Member

How about changing it to a more intuitive name? (e.g., useTimer)

@JeongHwan-dev JeongHwan-dev marked this pull request as draft May 8, 2025 14:20
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