@tamagui/use-callback-ref
Advanced tools
Comparing version 1.111.8 to 1.111.9
import * as React from "react"; | ||
function useCallbackRef(callback) { | ||
var callbackRef = React.useRef(callback); | ||
return React.useEffect(function() { | ||
return React.useEffect(function () { | ||
callbackRef.current = callback; | ||
}), React.useMemo(function() { | ||
return function() { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) | ||
args[_key] = arguments[_key]; | ||
}), React.useMemo(function () { | ||
return function () { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; | ||
var _callbackRef_current; | ||
@@ -15,5 +14,3 @@ return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args); | ||
} | ||
export { | ||
useCallbackRef | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
export { useCallbackRef }; | ||
//# sourceMappingURL=index.native.js.map |
{ | ||
"name": "@tamagui/use-callback-ref", | ||
"version": "1.111.8", | ||
"version": "1.111.9", | ||
"types": "./types/index.d.ts", | ||
@@ -21,3 +21,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.111.8" | ||
"@tamagui/build": "1.111.9" | ||
}, | ||
@@ -27,3 +27,3 @@ "exports": { | ||
".": { | ||
"react-native-import": "./dist/esm/index.native.mjs", | ||
"react-native-import": "./dist/esm/index.native.js", | ||
"react-native": "./dist/cjs/index.native.js", | ||
@@ -30,0 +30,0 @@ "types": "./types/index.d.ts", |
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
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
10552
15
138