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

How to pause the timer? #61

Closed
skswain96 opened this issue Nov 4, 2019 · 6 comments
Closed

How to pause the timer? #61

skswain96 opened this issue Nov 4, 2019 · 6 comments

Comments

@skswain96
Copy link

skswain96 commented Nov 4, 2019

@ndresx Can you please show an example of how to pause the timer and get paused time.

@ndresx ndresx added the question label Nov 4, 2019
@ndresx
Copy link
Owner

ndresx commented Nov 4, 2019

Hi @skswain96, here's a basic example of what you could do https://codesandbox.io/s/examples-2pjm5.

@skswain96
Copy link
Author

Hi @skswain96, here's a basic example of what you could do https://codesandbox.io/s/examples-2pjm5.

Hi @ndresx, thanks a lot, but I am new to react, and I have never worked with typescript, can we achieve this without using typescript?

@ndresx
Copy link
Owner

ndresx commented Nov 4, 2019

Yes! https://codesandbox.io/s/examples-e8ld2.

Btw. I have just updated the package and fixed a possible issue with a render state mismatch.

@ndresx ndresx added the bug label Nov 4, 2019
@ndresx ndresx mentioned this issue Nov 4, 2019
@ndresx
Copy link
Owner

ndresx commented Nov 10, 2019

Closing this, please feel free to re-open or create a new issue if you have more questions. Thank you!

@ndresx ndresx closed this as completed Nov 10, 2019
@skswain96
Copy link
Author

Closing this, please feel free to re-open or create a new issue if you have more questions. Thank you!

This is resolved, Thank You

@gino8080
Copy link

Please can you make an example with pause and custom render ?

thank you for this great lib!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants