@radix-ui/react-use-previous
Advanced tools
Comparing version 0.1.0 to 0.1.1-rc.1
@@ -1,2 +0,2 @@ | ||
var e,r,t=(e={},r=require("react"),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),e);exports.usePrevious=function(e){const r=t.useRef(e);return t.useEffect((()=>{r.current=e}),[e]),r.current}; | ||
var e,r,u=(e={},r=require("react"),Object.keys(r).forEach((function(u){"default"!==u&&"__esModule"!==u&&Object.defineProperty(e,u,{enumerable:!0,get:function(){return r[u]}})})),e);exports.usePrevious=function(e){const r=u.useRef({value:e,previous:e});return u.useMemo((()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous)),[e])}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import*as e from"react";export function usePrevious(r){const t=e.useRef(r);return e.useEffect((()=>{t.current=r}),[r]),t.current} | ||
import*as e from"react";export function usePrevious(r){const u=e.useRef({value:r,previous:r});return e.useMemo((()=>(u.current.value!==r&&(u.current.previous=u.current.value,u.current.value=r),u.current.previous)),[r])} | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-use-previous", | ||
"version": "0.1.0", | ||
"version": "0.1.1-rc.1", | ||
"license": "MIT", | ||
@@ -31,3 +31,4 @@ "source": "src/index.ts", | ||
"@babel/runtime": "^7.13.10" | ||
} | ||
}, | ||
"stableVersion": "0.1.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
5281
2
2