index.mjs 680 B

12345678910111213141516
  1. import {useLayoutEffect as $dxlwH$useLayoutEffect} from "react";
  2. /**
  3. * On the server, React emits a warning when calling `useLayoutEffect`.
  4. * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
  5. * We use this safe version which suppresses the warning by replacing it with a noop on the server.
  6. *
  7. * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
  8. */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : ()=>{};
  9. export {$9f79659886946c16$export$e5c5a5f917a5871c as useLayoutEffect};
  10. //# sourceMappingURL=index.mjs.map