Download node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40radix-ui/react-use-layout-effect/dist/index.mjs.map
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map
-
curl -L -o index.mjs.map https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40radix-ui/react-use-layout-effect/dist/index.mjs.map
693 Bytes
| { | |
| "version": 3, | |
| "sources": ["../src/use-layout-effect.tsx"], | |
| "sourcesContent": ["import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = globalThis?.document ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"], | |
| "mappings": ";AAAA,YAAY,WAAW;AASvB,IAAMA,mBAAkB,YAAY,WAAiB,wBAAkB,MAAM;AAAC;", | |
| "names": ["useLayoutEffect"] | |
| } | |