Replies: 1 comment 3 replies
-
Hey, the easies would be to pass a const [key, setKey] = useState(0)
return (
<CoundownCircleTimer
{...props}
key={key}
onComplete={() => setKey(prevKey => prevKey +1)}
/>
) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to reset the timer and to stop it when it's complete but I don't know how to do it, I tried with this and it's making the timer restart when it's over, but how can I make it restart and to stop it before it starts again?
onComplete={
() => [true, 0]
}
Beta Was this translation helpful? Give feedback.
All reactions