Skip to content

🐞 IdleTimer constantly triggering onIdle callback #389

@edilsontw16

Description

@edilsontw16

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.

Metadata

Metadata

Labels

bugA verified and reproducible bug.triageHas not been reviewed yet and should not be worked on.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions