@radix-ui/react-use-layout-effect
Advanced tools
Comparing version 0.1.1-rc.2 to 0.1.1-rc.3
@@ -1,2 +0,38 @@ | ||
var e,o,t=(e={},o=require("react"),Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})),e);const u=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{};exports.useLayoutEffect=u; | ||
var $caHyQ$react = require("react"); | ||
function $parcel$exportWildcard(dest, source) { | ||
Object.keys(source).forEach(function(key) { | ||
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) { | ||
return; | ||
} | ||
Object.defineProperty(dest, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return source[key]; | ||
} | ||
}); | ||
}); | ||
return dest; | ||
} | ||
function $parcel$export(e, n, v, s) { | ||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); | ||
} | ||
var $ca21affb0542a8a4$exports = {}; | ||
$parcel$export($ca21affb0542a8a4$exports, "useLayoutEffect", () => $ca21affb0542a8a4$export$e5c5a5f917a5871c); | ||
/** | ||
* On the server, React emits a warning when calling `useLayoutEffect`. | ||
* This is because neither `useLayoutEffect` nor `useEffect` run on the server. | ||
* We use this safe version which suppresses the warning by replacing it with a noop on the server. | ||
* | ||
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect | ||
*/ const $ca21affb0542a8a4$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $caHyQ$react.useLayoutEffect : ()=>{}; | ||
$parcel$exportWildcard(module.exports, $ca21affb0542a8a4$exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,22 @@ | ||
import*as o from"react";export const useLayoutEffect=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{}; | ||
import {useLayoutEffect as $dxlwH$useLayoutEffect} from "react"; | ||
function $parcel$export(e, n, v, s) { | ||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); | ||
} | ||
var $9f79659886946c16$exports = {}; | ||
$parcel$export($9f79659886946c16$exports, "useLayoutEffect", () => $9f79659886946c16$export$e5c5a5f917a5871c); | ||
/** | ||
* On the server, React emits a warning when calling `useLayoutEffect`. | ||
* This is because neither `useLayoutEffect` nor `useEffect` run on the server. | ||
* We use this safe version which suppresses the warning by replacing it with a noop on the server. | ||
* | ||
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect | ||
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : ()=>{}; | ||
export {$9f79659886946c16$export$e5c5a5f917a5871c as useLayoutEffect}; | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-use-layout-effect", | ||
"version": "0.1.1-rc.2", | ||
"version": "0.1.1-rc.3", | ||
"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
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
6077
54