UNPKG

@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration

Version:

An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop

17 lines (14 loc) 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useLayoutEffect = void 0; var _react = require("react"); /** * Avoids a warning being printed during SSR. * * See article for further information: * <https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a> */ var useIsomorphicLayoutEffect = exports.useLayoutEffect = typeof window !== 'undefined' ? _react.useLayoutEffect : _react.useEffect; // Ensure the name used in components is useLayoutEffect