1 | ;
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.default = void 0;
|
5 |
|
6 | var _react = require("react");
|
7 |
|
8 | var isReactNative = typeof global !== 'undefined' && // @ts-ignore
|
9 | global.navigator && // @ts-ignore
|
10 | global.navigator.product === 'ReactNative';
|
11 | var isDOM = typeof document !== 'undefined';
|
12 | /**
|
13 | * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
|
14 | * Only useful to avoid the console warning.
|
15 | *
|
16 | * PREFER `useEffect` UNLESS YOU KNOW WHAT YOU ARE DOING.
|
17 | *
|
18 | * @category effects
|
19 | */
|
20 |
|
21 | var _default = isDOM || isReactNative ? _react.useLayoutEffect : _react.useEffect;
|
22 |
|
23 | exports.default = _default; |
\ | No newline at end of file |