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
Check if user is idle.
import useIdle from "@rehooks/idleMonitor" function MyComponent() { const [isIdle, resume, pause] = useIdleMonitor(); return ( <div> {isIdle && <span>you are idle</span>} <button onClick={pause}>Pause idle monitor</button> <button onClick={resume}>Resume idle monitor</button> </div> ); }
I will give this a go.
The text was updated successfully, but these errors were encountered:
@VanthiyaThevan I don't know how you are tracking user idleness, I think you are going to attach a mouse listener and keyboard listener to the state.
I have a suggestion, in that case, please include a threshold for triggering.
Sorry, something went wrong.
No branches or pull requests
Check if user is idle.
I will give this a go.
The text was updated successfully, but these errors were encountered: