react-idle-timer
Advanced tools
Changelog
4.2.4
Changelog
4.2.3
Changelog
4.2.2
Changelog
4.2.1
Changelog
4.2.0
Events are unbound when:
stopOnIdle
is set to true
and the user goes idlepause()
is calledEvents are bound when:
reset()
is calledresume()
is calledstopOnIdle
will now keep IdleTimer
in idle state until reset()
is called.stopOnIdle
logic was being applied to active state.onIdle
event was not firing when stopOnIdle
is setChangelog
4.1.3
stopOnIdle
will now keep IdleTimer
in idle state until reset()
is called.Changelog
4.1.2
stopOnIdle
logic was being applied to active state.Changelog
4.1.1
onIdle
event was not firing when stopOnIdle
is setChangelog
4.1.0
stopOnIdle
defaults to false
. Setting to true
will prevent user activity from restarting the IdleTimer
once it has gone idle. This useful if you want to do some custom async stuff before the IdleTimer
gets restarted. In order to restart the IdleTimer
call reset()
on your ref.onActive
which enables reporting of all user activity from IdleTimer
. The built in debounce
or throttle
properties will help increase performance if you are using the onActive
event. By default debounce
and throttle
are off. Only one can be enabled at a time.debounce
defaults to 0. Set the onActive
debounce delay in milliseconds. The throttle
property cannot be set if this property is set.throttle
defaults to 0. Set the onActive
throttle delay in milliseconds. The debounce
property cannot be set if this property is set.startOnMount
to false
starts IdleTimer in the wrong state.startOnMount
to false
starts IdleTimer in the wrong state.Changelog
4.0.9