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
Full rewrite of the internals: all countdown logic now lives in a framework-agnostic CountdownJs engine, with React as a thin adapter over a new public useCountdown hook. <Countdown /> is built on that hook, so component and hook share one lifecycle.
Ships dual ESM + CJS with bundled types, sideEffects: false, and targets React 18+. Changes are relative to 2.3.6.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Full rewrite of the internals: all countdown logic now lives in a framework-agnostic
CountdownJsengine, with React as a thin adapter over a new publicuseCountdownhook.<Countdown />is built on that hook, so component and hook share one lifecycle.Ships dual ESM + CJS with bundled types,
sideEffects: false, and targets React 18+. Changes are relative to 2.3.6.Breaking
useSyncExternalStore).ref.current.getApi()→ref.current.api.className,children, the legacycountprop, andprop-types.onCompleteis now(timeDelta, completedOnStart).Added
useCountdownhook (same render props as the component).react-countdown/componentandreact-countdown/hook.resetKey(restart without remount) andfreezeProps(opt out of prop tracking).CountdownStatusenum export +getStatus()+refresh()API methods.Toolchain
What's Changed
Full Changelog: v2.3.6...v3.0.0-beta.0
This discussion was created from the release v3.0.0-beta.0.
Beta Was this translation helpful? Give feedback.
All reactions