-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
UseTimeout #506
Comments
Thank you and sorry for taking so long, I was thinking in adding this, but I never got the time, if you don't mind in PR it, I will appreciated a lot. |
Hi pikax, I love this repo and I want to participate this repo, so I add a new composable useTimeout, do you have time to review my PR? @pikax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently had a use case for a timeout that I could cancel, or run early. Specifically in my app it's a "redirecting" page, where there's a timeout of 3 seconds and a button to do the redirect immediately.
First off, is this possible with cancellablePromise or one of the other composables?
If not, maybe this would be a good addition? Somethings I added to it are:
Here's my implementation
Edit: removed ssrTimeout in favor of useTimeout handling it itself
The text was updated successfully, but these errors were encountered: