node/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js
raw| 1 | import { useEffect, useLayoutEffect } from 'react'; |
| 2 | import { canUseDOM } from './util'; |
| 3 | /** |
| 4 | * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs |
| 5 | */ |
| 6 | export const useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect; |
| 7 | //# sourceMappingURL=useIsomorphicLayout.js.map |