node/@patternfly/react-core/dist/js/helpers/useIsomorphicLayout.js
raw| 1 | "use strict"; |
| 2 | Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 | exports.useIsomorphicLayoutEffect = void 0; |
| 4 | const react_1 = require("react"); |
| 5 | const util_1 = require("./util"); |
| 6 | /** |
| 7 | * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs |
| 8 | */ |
| 9 | exports.useIsomorphicLayoutEffect = util_1.canUseDOM ? react_1.useLayoutEffect : react_1.useEffect; |
| 10 | //# sourceMappingURL=useIsomorphicLayout.js.map |