Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useStopwatch API changes #31

Merged
merged 4 commits into from
Mar 2, 2024
Merged

useStopwatch API changes #31

merged 4 commits into from
Mar 2, 2024

Conversation

dlcastillop
Copy link
Owner

Before

const stopwatch = useStopwatch(0, 0, 10, 0, false, "-", () => console.log("Finish"))

Now

const stopwatch = useStopwatch({
    endTime: "00:00:10:00",
    startPaused: false,
    separator: "-",
    onFinish: () => console.log("Finish")
})

@dlcastillop dlcastillop linked an issue Mar 2, 2024 that may be closed by this pull request
@dlcastillop dlcastillop merged commit e3cde82 into main Mar 2, 2024
@dlcastillop dlcastillop deleted the feature/27 branch March 10, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useStopwatch and useUnlimitedStopwatch API changes for v2.0
1 participant