Add key prop to useCountdown hook for refreshing
tfkennedy777 opened this issue · comments
These props work perfectly on the CountdownTimerCircle component, and as a workaround, what I'm trying to achieve can be done by using the component with display: 'none' style. However, it would be awesome to have these props supported by the hook itself. This way I can do const { elapsedTime} = useCountdown({ key: key, initialRemainingTime: time, ... })
and avoid using the component unnecessarily.
Yup, this seem a good feature request!
Awesome! Thanks for being so on top of things. I'm sure you already know this, but my title doesn't include it, so just want to add for clarity—the initialRemainingTime prop will also need to be added to useCountdown, at least for my use case. Thanks again
Oh, apologies. I'm looking here, at /lib/index.d.ts, and it doesn't show as a prop.
+1 on this request.