We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
User story: I want to use useTimeout in order to nudge the user while they are looking at my page.
Problem: If the timeout elapses while the user is looking at another tab, they will miss the nudge.
It would be very nice if useTimeout had an option / variant that 'pauses' the timeout if the window is not focused.
This would require
The text was updated successfully, but these errors were encountered:
Hello @janwirth
maybe this can help: https://codesandbox.io/s/wizardly-minsky-39c9nf?file=/src/App.tsx
@juliencrn I consider submitting a PR to integrate my work if you think it is worth it.
Sorry, something went wrong.
useTimeout
No branches or pull requests
User story: I want to use useTimeout in order to nudge the user while they are looking at my page.
Problem: If the timeout elapses while the user is looking at another tab, they will miss the nudge.
It would be very nice if useTimeout had an option / variant that 'pauses' the timeout if the window is not focused.
This would require
The text was updated successfully, but these errors were encountered: