Comments (3)
Hi @Missshu! Thanks for using IdleTimer
! Can you try to move your children outside of the IdleTimer
instantiation? Your render should look like this:
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.
from react-idle-timer.
Closing this due to lack of activity. Let me know if you are still having issues!
from react-idle-timer.
Hi @SupremeTechnopriest ,
I did not reply because I was waiting for the testers to verify if the issue is resolved or not. I can't replicate it on my local machine so I could not be able to verify it.
I will create another issue if we still continue to have the problem.
Thank you.
from react-idle-timer.
Related Issues (20)
- sync issue while the first tab in "prompted" state.
- π Module parse failed: Unexpected token (1:6657) You may need an appropriate loader to handle this file type HOT 1
- Prevent timeout countdown reset when modal appears and when there is user activity HOT 1
- π Update types to prevent @typescript-eslint/unbound-method errors HOT 4
- π Importing useIdleTimer throws error during compilation with "type": "module" HOT 7
- Not working in Microsoft edge browser, using idle timer version 5.7.2π HOT 1
- π react-idle-timer node modules issue HOT 4
- When video is running activity is not detectedβ‘οΈ HOT 1
- π Types error maybe?
- Is there something to direct to specific page once timer expires β‘οΈ HOT 2
- Reset method does nothing HOT 1
- Issue when resetting timerπ
- π Module Parse Failed with babel-loader HOT 1
- Has onActive() condition changed?π HOT 3
- β‘οΈ lastActiveTab state: a state to know whether this is the last active tab or not HOT 1
- Is there a way for the use to be considered idle when the web page loses focus? β‘οΈ HOT 7
- π React 17 - Timer starting without timer.start() although startManually prop is true
- π Reset Method Increases the Original Timeout Temporarily
- π onPrompt does not fire if the promptBeforeIdle time occurs while the computer is sleeping HOT 2
- π IdleTimer constantly triggering onIdle callback HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-idle-timer.