🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-idle-timer

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-idle-timer - npm Package Versions

1
1012
15

4.2.4

Diff
supremetechnopriest
published 4.2.4 •

Changelog

Source

4.2.4

🐞 Bug Fixes

  • Fix typescript definition for event methods.
  • Fix a bug where throttled and debounced actions would not take new props.
supremetechnopriest
published 4.2.3 •

Changelog

Source

4.2.3

🐞 Bug Fixes

  • Fix an issue importing module with typescript. #72
supremetechnopriest
published 4.2.2 •

Changelog

Source

4.2.2

🐞 Bug Fixes

  • Fix an issue updating state from inside onIdle. #71
supremetechnopriest
published 4.2.1 •

Changelog

Source

4.2.1

✨ Enhancements

  • Add a typescript definition that will now be maintained along with this library. It expects that you have the react type definitions installed.

📝 Documentation

  • Fix a documentation error.
supremetechnopriest
published 4.2.0 •

Changelog

Source

4.2.0

⚡️ Features

  • Dynamically bind and unbind events.

Events are unbound when:

  • stopOnIdle is set to true and the user goes idle
  • pause() is called

Events are bound when:

  • component is mounted
  • reset() is called
  • resume() is called

4.1.3

🐞 Bug Fixes

  • stopOnIdle will now keep IdleTimer in idle state until reset() is called.

4.1.2

🐞 Bug Fixes

  • Fix a bug where stopOnIdle logic was being applied to active state.

4.1.1

🐞 Bug Fixes

  • Fix a bug where initial onIdle event was not firing when stopOnIdle is set
supremetechnopriest
published 4.1.3 •

Changelog

Source

4.1.3

🐞 Bug Fixes

  • stopOnIdle will now keep IdleTimer in idle state until reset() is called.
supremetechnopriest
published 4.1.2 •

Changelog

Source

4.1.2

🐞 Bug Fixes

  • Fix a bug where stopOnIdle logic was being applied to active state.
supremetechnopriest
published 4.1.1 •

Changelog

Source

4.1.1

🐞 Bug Fixes

  • Fix a bug where initial onIdle event was not firing when stopOnIdle is set
supremetechnopriest
published 4.1.0 •

Changelog

Source

4.1.0

⚡️ Features

  • Add property 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.
  • Add event handler 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.
  • Add property debounce defaults to 0. Set the onActive debounce delay in milliseconds. The throttle property cannot be set if this property is set.
  • Add property throttle defaults to 0. Set the onActive throttle delay in milliseconds. The debounce property cannot be set if this property is set.

4.0.9

🐞 Bug Fixes

  • Fix a memory leak when IdleTimer is unmounted.

4.0.8

🐞 Bug Fixes

  • Fix a bug where passive and capture were not being passed to the event listener.

4.0.7

🐞 Bug Fixes

  • Fix some inconsistencies in the README.

📝 Documentation

  • Add default prop values to documentation.

4.0.6

🐞 Bug Fixes

  • Fix a bug where setting startOnMount to false starts IdleTimer in the wrong state.

4.0.5

🐞 Bug Fixes

  • Fix a bug where setting startOnMount to false starts IdleTimer in the wrong state.

4.0.4

🐞 Bug Fixes

  • Fix a bug where the module could not be imported.

4.0.3

📝 Documentation

  • Minor documentation updates.

💚 CI

  • Continuous integration bugfixes.

4.0.2

📝 Documentation

  • Minor documentation updates

💚 CI

  • Continuous integration bugfixes

4.0.1

📝 Documentation

  • Minor documentation updates

💚 CI

  • Continuous integration bugfixes
supremetechnopriest
published 4.0.9 •

Changelog

Source

4.0.9

🐞 Bug Fixes

  • Fix a memory leak when IdleTimer is unmounted.