-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Having intermittent issue with react-idle-timer #58
Comments
Hi @Missshu! Thanks for using render() {
let timeout: any;
let timeoutDuration = document.getElementById('timeout');
if (timeoutDuration != null) {
timeout = timeoutDuration.getAttribute('data-param');
}
return (
<div>
<IdleTimer
ref={(ref: any) => { this.idleTimer = ref }}
element={document}
onActive={this.onActive}
onIdle={this.onIdle}
timeout={timeout} startOnLoad />
<WrappedComponent {...this.props} />
</div>
);
} See if that fixes your issue and If not let me know. We will take a deeper look. |
Closing this due to lack of activity. Let me know if you are still having issues! |
Hi @SupremeTechnopriest , I will create another issue if we still continue to have the problem. Thank you. |
Hi Guys, thanks for developing this package for react. I have used it for session timeout and after we deployed the application for testing, it is not working as expected , sometimes. The timeout time is 10 mins and if the user is idle for more than 10 mins and when he comes back, he will get an alert popup that says your session is expired and on clicking ok, the application will kick out the user and display the login page for the user to login again. The issue is a couple of times, not every time, the testers say that they did not get the popup alert and the application will just freeze (this is not related to the idle timer, I think it is related to the authentication we used). I think the issue here is for some reason the idle timer did not fire the alert popup but I could not replicate the issue on my local machine which makes it difficult to troubleshoot.
Here is a sample of my code
and this is what I have on render
Thanks for your help.
The text was updated successfully, but these errors were encountered: