index.js 814 B

1234567891011121314151617181920
  1. var $caHyQ$react = require("react");
  2. function $parcel$export(e, n, v, s) {
  3. Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
  4. }
  5. $parcel$export(module.exports, "useLayoutEffect", () => $ca21affb0542a8a4$export$e5c5a5f917a5871c);
  6. /**
  7. * On the server, React emits a warning when calling `useLayoutEffect`.
  8. * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
  9. * We use this safe version which suppresses the warning by replacing it with a noop on the server.
  10. *
  11. * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
  12. */ const $ca21affb0542a8a4$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $caHyQ$react.useLayoutEffect : ()=>{};
  13. //# sourceMappingURL=index.js.map