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

🐞 IdleTimer constantly triggering onIdle callback #389

Open
1 task done
edilsontw16 opened this issue Feb 23, 2024 · 2 comments
Open
1 task done

🐞 IdleTimer constantly triggering onIdle callback #389

edilsontw16 opened this issue Feb 23, 2024 · 2 comments
Assignees
Labels
bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on.

Comments

@edilsontw16
Copy link

What happened?

I'm using the IdleTimer component to control the session but there is a weird behavior happening, basically every time I try to switch section on my app the user gets idle. It starts working as expected but when it's necessary to make some redirection the user gets idle automatically. Unfortunately I can't use a higher version because my project stil uses react v16.

Reproduction Steps

Use the v4 of react-idle-timer and try to make any redirection, the user will get idle instantly.

Relevant log output

No response

Screenshots or Additional Context

No response

Module Version

4..

What browsers are you seeing the problem on? Select all that apply.

Chrome

What devices are you seeing the problem on?

Desktop

Verification

  • I have checked for existing closed issues and discussions.
@edilsontw16 edilsontw16 added bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on. labels Feb 23, 2024
@mmeluch
Copy link

mmeluch commented Apr 11, 2024

I can confirm the same is happening to me on v4.6.0, however it only affects a very small portion of our users (~1%) and I was not able to reproduce it myself locally.

Just hoping the problem will go away once we upgrade to v5.X..

@max-mayorov
Copy link

max-mayorov commented Apr 29, 2024

Hi, we are experiencing the same issue. Unfortunately I also cannot reproduct it locally, but the users complain that onIdle is triggered before the timeout expired... We are using version 5.7.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A verified and reproducible bug. triage Has not been reviewed yet and should not be worked on.
Projects
None yet
Development

No branches or pull requests

4 participants