Socket
Socket
Sign inDemoInstall

reshow-hooks

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-hooks - npm Package Compare versions

Comparing version 0.17.57 to 0.18.0

build/es/__tests__/useTimerTest.mjs

8

build/cjs/useTimer.js

@@ -32,3 +32,3 @@ "use strict";

}, []);
var stop = function stop() {
var stop = (0, _react.useCallback)(function () {
if (timer.current) {

@@ -38,3 +38,3 @@ (0, _callFunc["default"])(act.stop, [timer.current]);

}
};
}, []);
(0, _react.useEffect)(function () {

@@ -49,6 +49,6 @@ return function () {

*/
var run = function run(func, delay) {
var run = (0, _react.useCallback)(function (func, delay) {
stop();
timer.current = (0, _callFunc["default"])(act.run, [func, delay]);
};
}, []);
return [run, stop];

@@ -55,0 +55,0 @@ };

{
"version": "0.17.57",
"version": "0.18.0",
"name": "reshow-hooks",

@@ -4,0 +4,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc