Coder Social home page Coder Social logo

Comments (8)

bradgarropy avatar bradgarropy commented on May 30, 2024 1

That's a great idea!

In your opinion, do you think the countdown should have to be stopped first? Or could it be reset while running?

Also, if you have any details on your use case (why you need the reset feature) it would help give me some context while implementing it.

from use-countdown.

Mehdmhd avatar Mehdmhd commented on May 30, 2024 1

I think the countdown should be paused or completed before it can be reset.

In my case, I show a button once it has finished, and then reset it (and restart it) when I click on the button.

I use the countdown to specify an expiration in the next few minutes. The button is used to regenerate a code.

from use-countdown.

bradgarropy avatar bradgarropy commented on May 30, 2024 1

Thanks, this is great info! I'll start coding the feature tonight live on my Twitch channel.

from use-countdown.

bradgarropy avatar bradgarropy commented on May 30, 2024 1

@all-contributors add @Mehdmhd for ideas and user testing

from use-countdown.

bradgarropy avatar bradgarropy commented on May 30, 2024

@Mehdmhd on reset, would you like the countdown to continue running? Or reset to a paused state?

Currently there is no start method. The countdown begins running as soon as it's rendered.

from use-countdown.

Mehdmhd avatar Mehdmhd commented on May 30, 2024

In my situation, I'll like to reset also starts the countdown. If I need to stop the countdown, the function pause is available.

If the user calls the pause function before the reset function, he should call the resume function to start the countdown. It makes sense for me.

from use-countdown.

bradgarropy avatar bradgarropy commented on May 30, 2024

Closed with #16.

from use-countdown.

allcontributors avatar allcontributors commented on May 30, 2024

@bradgarropy

I've put up a pull request to add @Mehdmhd! 🎉

from use-countdown.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.