@tamagui/use-constant
Advanced tools
Comparing version 1.113.1 to 1.113.2
import * as React from "react"; | ||
function useConstant(fn) { | ||
if (typeof document > "u") return React.useMemo(function () { | ||
return fn(); | ||
}, []); | ||
if (typeof document > "u") | ||
return React.useMemo(function() { | ||
return fn(); | ||
}, []); | ||
var ref = React.useRef(); | ||
@@ -11,3 +12,5 @@ return ref.current || (ref.current = { | ||
} | ||
export { useConstant }; | ||
//# sourceMappingURL=index.native.js.map | ||
export { | ||
useConstant | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tamagui/use-constant", | ||
"version": "1.113.1", | ||
"version": "1.113.2", | ||
"types": "./types/index.d.ts", | ||
@@ -31,3 +31,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.113.1", | ||
"@tamagui/build": "1.113.2", | ||
"react": "^18.2.0 || ^19.0.0" | ||
@@ -34,0 +34,0 @@ }, |
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
9217
129