Skip to content

Add key prop to useCountdown hook for refreshing #247

@tfkennedy777

Description

@tfkennedy777

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions