67ea0c304b8e79d93d489c375fa8071e.json
1.03 KB
{"ast":null,"code":"import { useEffect, useLayoutEffect } from 'react';\nimport canUseDom from \"rc-util/es/Dom/canUseDom\"; // It's safe to use `useLayoutEffect` but the warning is annoying\n\nvar useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect : useEffect;\nexport default useIsomorphicLayoutEffect;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js"],"names":["useEffect","useLayoutEffect","canUseDom","useIsomorphicLayoutEffect"],"mappings":"AAAA,SAASA,SAAT,EAAoBC,eAApB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,0BAAtB,C,CAAkD;;AAElD,IAAIC,yBAAyB,GAAGD,SAAS,KAAKD,eAAL,GAAuBD,SAAhE;AACA,eAAeG,yBAAf","sourcesContent":["import { useEffect, useLayoutEffect } from 'react';\nimport canUseDom from \"rc-util/es/Dom/canUseDom\"; // It's safe to use `useLayoutEffect` but the warning is annoying\n\nvar useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect : useEffect;\nexport default useIsomorphicLayoutEffect;"]},"metadata":{},"sourceType":"module"}