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

@radix-ui/react-use-previous

Package Overview
Dependencies
Maintainers
5
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-use-previous - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/index.js

@@ -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){var r=t.useRef(e);return t.useEffect((function(){r.current=e}),[e]),r.current};
var e,r,u,t=require("react"),n=t.useRef,c=t.useEffect;function f(e){var r=n(e);return c((function(){r.current=e}),[e]),r.current}exports.usePrevious=f,e={},r="usePrevious",u=function(){return f},Object.defineProperty(e,r,{get:u,enumerable:!0});
//# 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{useRef as r,useEffect as e}from"react";var t,n,u;function o(t){var n=r(t);return e((function(){n.current=t}),[t]),n.current}export{o as usePrevious};t={},n="usePrevious",u=function(){return o},Object.defineProperty(t,n,{get:u,enumerable:!0});
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-use-previous",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",

@@ -16,3 +16,4 @@ "source": "src/index.ts",

"clean": "rm -rf dist",
"prepublish": "yarn clean"
"prepublish": "yarn clean",
"version": "yarn version"
},

@@ -29,3 +30,6 @@ "peerDependencies": {

"url": "https://github.com/radix-ui/primitives/issues"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.13.10"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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