I want it to start again at another time when the countdown is over. How can i do? #112
-
For example i have 5 different time.
When the time1 with now is over, I want to count now and time2 time without a break. I tried setting the time in the onComplete props but it didnt work. In the renderer props I tried setting it up if complete and returning a new countdown but it didn't work too. How can i do this? |
Beta Was this translation helpful? Give feedback.
Answered by
ndresx
Jan 18, 2021
Replies: 1 comment 1 reply
-
Hey, you could maybe do something like this https://codesandbox.io/s/inspiring-lehmann-isv34?file=/index.js. I just changed the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ardaberrun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you could maybe do something like this https://codesandbox.io/s/inspiring-lehmann-isv34?file=/index.js. I just changed the
time
values into integers so that they can be added easily toDate.now()
.