react-countdown icon indicating copy to clipboard operation
react-countdown copied to clipboard

It does not restart on its own, as if after completing it, if we want to start it again, then it has to rerender the entire page from scratch.

Open ManojJyani0 opened this issue 2 years ago • 4 comments

it is stuck when it is completed and to start it again rereander full page with navigate to another page or somthing

ManojJyani0 avatar Jul 06 '23 14:07 ManojJyani0

same here

ether-wan avatar Sep 13 '23 12:09 ether-wan

same here

sergiors avatar Jan 15 '24 19:01 sergiors

is there any update on it?

ravirasadiya avatar Mar 14 '24 17:03 ravirasadiya

Hi, a bit late to this, but the easiest way to restart the countdown is by providing a key "prop" to the Countdown. On completion, you can reset this key to a new value, and the countdown will remount itself.

Alternatively, you can use the countdown's API. Here is an example you could try and check out https://github.com/ndresx/react-countdown/blob/master/examples/src/CountdownApi.tsx.

ndresx avatar Mar 23 '24 22:03 ndresx