📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@radix-ui/react-use-effect-event

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-use-effect-event - npm Package Compare versions

Comparing version

to
0.0.1-rc.1744998943107

12

dist/index.js

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

});
if (typeof React["useInsertionEffect ".trim().toString()] === "function") {
React.useInsertionEffect(() => {
ref.current = callback;
});
} else {
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
ref.current = callback;
});
}
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
ref.current = callback;
});
return React.useMemo(() => (...args) => ref.current?.(...args), []);
}
//# sourceMappingURL=index.js.map
{
"name": "@radix-ui/react-use-effect-event",
"version": "0.0.1-rc.1744998730501",
"version": "0.0.1-rc.1744998943107",
"license": "MIT",

@@ -5,0 +5,0 @@ "source": "./src/index.ts",

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

Sorry, the diff of this file is not supported yet