react-idle-timer
Advanced tools
Changelog
4.0.8
Changelog
4.0.7
Changelog
4.0.6
startOnMount
to false
starts IdleTimer in the wrong state.Changelog
4.0.5
startOnMount
to false
starts IdleTimer in the wrong state.Changelog
4.0.4
Changelog
4.0.3
Changelog
4.0.2
Changelog
4.0.1
Changelog
4.0.0
Version 4.0 contains a rewrite of the build system and a refactor of the source code for IdleTimer. After accepting many pull requests, the projects code style was destroyed, so some forced styling was added and PRs that don't respect this style will not be accepted. Contribution guide now on the README.
startOnLoad
has been renamed to startOnMount
to make more sense in a react context.activeAction
has been renamed to onActive
.idleAction
has been renamed to onIdle
.true
, bind events with passive mode enabled.true
, bind events with capture mode enabled.onActive
callback functions.Changelog
3.0.0
Dropped support for date formatting in version 3. IdleTimer returns raw date objects and you can use which ever library you like to format it. If you would like to continue using the built in formatter, stick with version 2.