Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@restart/hooks

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@restart/hooks - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

usePrevious.d.ts

2

package.json
{
"name": "@restart/hooks",
"version": "0.1.4",
"version": "0.1.5",
"main": "index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

@@ -9,5 +9,4 @@ "use strict";

function usePrevious(value) {
const ref = (0, _react.useRef)();
const ref = (0, _react.useRef)(null);
(0, _react.useEffect)(() => {
console.log('update!');
ref.current = value;

@@ -14,0 +13,0 @@ });

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