@react-hook/passive-layout-effect
Version:
A React hook that uses useEffect() on the server and useLayoutEffect() in the browser
1 lines • 534 B
Source Map (JSON)
{"version":3,"file":"index.dev.mjs","sources":["../../src/index.tsx"],"sourcesContent":["import React from 'react'\n\nconst usePassiveLayoutEffect =\n React[\n typeof document !== 'undefined' && document.createElement !== void 0\n ? 'useLayoutEffect'\n : 'useEffect'\n ]\n\nexport default usePassiveLayoutEffect\n"],"names":["usePassiveLayoutEffect","React","document","createElement"],"mappings":";;IAEMA,sBAAsB,GAC1BC,KAAK,CACH,OAAOC,QAAP,KAAoB,WAApB,IAAmCA,QAAQ,CAACC,aAAT,KAA2B,KAAK,CAAnE,GACI,iBADJ,GAEI,WAHD;;;;"}