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

@tamagui/use-event

Package Overview
Dependencies
Maintainers
1
Versions
1016
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/use-event - npm Package Compare versions

Comparing version 1.0.1-beta.140 to 1.0.1-beta.141

7

dist/jsx/useGet.js

@@ -6,10 +6,7 @@ import { useCallback, useEffect, useLayoutEffect, useRef } from "react";

function useGet(currentValue, initialValue, forwardToFunction) {
const curRef = useRef(initialValue != null ? initialValue : currentValue);
const curRef = useRef(initialValue ?? currentValue);
useIsomorphicLayoutEffect(() => {
curRef.current = currentValue;
});
return useCallback(forwardToFunction ? (...args) => {
var _a;
return (_a = curRef.current) == null ? void 0 : _a.apply(null, args);
} : () => curRef.current, []);
return useCallback(forwardToFunction ? (...args) => curRef.current?.apply(null, args) : () => curRef.current, []);
}

@@ -16,0 +13,0 @@ export {

{
"name": "@tamagui/use-event",
"version": "1.0.1-beta.140",
"version": "1.0.1-beta.141",
"types": "./types/index.d.ts",

@@ -22,3 +22,3 @@ "main": "dist/cjs",

"devDependencies": {
"@tamagui/build": "^1.0.1-beta.140",
"@tamagui/build": "^1.0.1-beta.141",
"react": "*"

@@ -25,0 +25,0 @@ },

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