You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timer hooks look simple until real apps need pause/resume semantics, Strict Mode cleanup, async callbacks, polling that does not overlap, and lists with dozens of independent timers.
19
19
20
-
`@crup/react-timer-hook`keeps the root import small and lets your app opt into heavier features only when needed:
20
+
`@crup/react-timer-hook`starts with a tiny core and lets your app compose the heavier pieces only when it needs them:
21
21
22
22
- ⏱️ `useTimer()` from the root package for one lifecycle: stopwatch, countdown, clock, or custom flow.
23
+
- 🔋 Batteries are optional: schedules, timer groups, duration helpers, and diagnostics live in subpath imports.
23
24
- 🧭 `useTimerGroup()` from `/group` for many keyed lifecycles with one shared scheduler.
24
25
- 📡 `useScheduledTimer()` from `/schedules` for polling, overdue timing context, and opt-in diagnostics.
25
26
- 🧩 `durationParts()` from `/duration` for display math without locale or timezone opinions.
@@ -41,9 +42,6 @@ import { useTimer } from '@crup/react-timer-hook';
0 commit comments