@restart/hooks
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7697
18