You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a 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
s
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.
s
supremetechnopriest
published 4.2.3 •

Changelog

Source

4.2.3

🐞 Bug Fixes

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

Changelog

Source

4.2.2

🐞 Bug Fixes

  • Fix an issue updating state from inside onIdle. #71
s
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.
s
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
s
supremetechnopriest
published 4.1.3 •

Changelog

Source

4.1.3

🐞 Bug Fixes

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

Changelog

Source

4.1.2

🐞 Bug Fixes

  • Fix a bug where stopOnIdle logic was being applied to active state.
s
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
s
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.
s
supremetechnopriest
published 4.0.9 •

Changelog

Source

4.0.9

🐞 Bug Fixes

  • Fix a memory leak when IdleTimer is unmounted.