Socket
Socket
Sign inDemoInstall

@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.3.12 to 0.3.13

7

cjs/useStableMemo.js

@@ -44,8 +44,7 @@ "use strict";

deps: deps,
result: factory()
result: factory() // must update immediately so any sync renders here don't cause an infinite loop
};
(0, _react.useEffect)(function () {
valueRef.current = cache;
});
valueRef.current = cache;
return cache.result;
}

@@ -1,2 +0,2 @@

import { useRef, useEffect } from 'react';
import { useRef } from 'react';

@@ -39,8 +39,7 @@ function isEqual(a, b) {

deps: deps,
result: factory()
result: factory() // must update immediately so any sync renders here don't cause an infinite loop
};
useEffect(function () {
valueRef.current = cache;
});
valueRef.current = cache;
return cache.result;
}
{
"name": "@restart/hooks",
"version": "0.3.12",
"version": "0.3.13",
"main": "cjs/index.js",
"types": "cjs/index.d.ts",
"module": "esm/index.js",
"repository": "https://github.com/jquense/react-common-hooks.git",
"author": "Jason Quense <monastic.panic@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/jquense/react-common-hooks.git"
},
"author": {
"name": "Jason Quense",
"email": "monastic.panic@gmail.com"
},
"license": "MIT",

@@ -22,6 +28,6 @@ "jest": {

"publishConfig": {
"access": "public"
"access": "public",
"directory": "lib"
},
"release": {
"publishDir": "lib",
"conventionalCommits": true

@@ -31,3 +37,9 @@ },

"react": "^16.8.0-0"
}
},
"bugs": {
"url": "https://github.com/jquense/react-common-hooks/issues"
},
"readme": "ERROR: No README data found!",
"homepage": "https://github.com/jquense/react-common-hooks#readme",
"_id": "@restart/hooks@0.3.12"
}
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