@restart/hooks
Advanced tools
Comparing version 0.3.12 to 0.3.13
@@ -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" | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
120525
0
1
0
3194