PHP 8.2.30
Preview: useIsomorphicLayoutEffect.js Size: 2.24 KB
/home/byroehnu/easepay.easetack.com/node_modules/react-redux/lib/utils/useIsomorphicLayoutEffect.js

"use strict";

exports.__esModule = true;
exports.useIsomorphicLayoutEffect = exports.canUseDOM = void 0;

var React = _interopRequireWildcard(require("react"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

// React currently throws a warning when using useLayoutEffect on the server.
// To get around it, we can conditionally useEffect on the server (no-op) and
// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
// subscription callback always has the selector from the latest render commit
// available, otherwise a store update may happen between render and the effect,
// which may cause missed updates; we also must ensure the store subscription
// is created synchronously, otherwise a store update may occur before the
// subscription is created and an inconsistent state may be observed
// Matches logic in React's `shared/ExecutionEnvironment` file
const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
exports.canUseDOM = canUseDOM;
const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;

Directory Contents

Dirs: 0 × Files: 13

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:19
Edit Download
495 B lrw-r--r-- 2026-02-28 00:27:26
Edit Download
427 B lrw-r--r-- 2026-02-28 00:27:38
Edit Download
537 B lrw-r--r-- 2026-02-28 00:28:32
Edit Download
235 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
244 B lrw-r--r-- 2026-02-28 00:29:00
Edit Download
718 B lrw-r--r-- 2026-02-28 00:29:06
Edit Download
3.17 KB lrw-r--r-- 2026-02-28 00:29:06
Edit Download
2.24 KB lrw-r--r-- 2026-02-28 00:29:10
Edit Download
1.42 KB lrw-r--r-- 2026-02-28 00:29:12
Edit Download
195 B lrw-r--r-- 2026-02-28 00:29:22
Edit Download
533 B lrw-r--r-- 2026-02-28 00:29:30
Edit Download
700 B lrw-r--r-- 2026-02-28 00:29:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).