Socket
Socket
Sign inDemoInstall

reshow-hooks

Package Overview
Dependencies
Maintainers
1
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.12 to 0.17.13

15

build/cjs/src/usePrevious.js

@@ -13,7 +13,12 @@ "use strict";

var usePrevious = function usePrevious(value) {
var prevValue = (0, _react.useRef)();
(0, _react.useEffect)(function () {
prevValue.current = value;
}, [value]);
return prevValue.current;
var data = (0, _react.useRef)({});
if (data.current.prev !== value) {
data.current = {
prev: data.current.cur,
cur: value
};
}
return data.current.prev;
};

@@ -20,0 +25,0 @@

{
"version": "0.17.12",
"version": "0.17.13",
"name": "reshow-hooks",

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

Sorry, the diff of this file is not supported yet

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