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.25 to 0.17.26

7

build/cjs/src/usePrevious.js

@@ -6,9 +6,14 @@ "use strict";

var _react = require("react");
//@ts-check
/**
* Check more info
* https://beta.reactjs.org/learn/you-might-not-need-an-effect?#adjusting-some-state-when-a-prop-changes
* @param {any} value
* @param {any} [init]
*/
var usePrevious = function usePrevious(value, init) {
var data = (0, _react.useRef)({
cur: init
cur: init,
prev: null
});

@@ -15,0 +20,0 @@ data.current = {

2

package.json
{
"version": "0.17.25",
"version": "0.17.26",
"name": "reshow-hooks",

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

@@ -5,3 +5,5 @@ export default usePrevious;

* https://beta.reactjs.org/learn/you-might-not-need-an-effect?#adjusting-some-state-when-a-prop-changes
* @param {any} value
* @param {any} [init]
*/
declare function usePrevious(value: any, init: any): any;
declare function usePrevious(value: any, init?: any): any;

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