persona-community-5/.pnpm-store/v3/files/67/2008a4ffcc04e886abe01e8d3e56dd3c699a357004ea196ef83f6a09fae0358f91decf0287b360605a3b7fd02706c6ebd8864170f07c75474367c3d7609495
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

8 lines
850 B
Plaintext

{
"version": 3,
"sources": ["../src/index.ts", "../src/use-layout-effect.tsx"],
"sourcesContent": ["export { useLayoutEffect } from './use-layout-effect';\n", "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;AAAA;AAAA,yBAAAA;AAAA;AAAA;;;ACAA,YAAuB;AASvB,IAAMC,mBAAkB,YAAY,WAAiB,wBAAkB,MAAM;AAAC;",
"names": ["useLayoutEffect", "useLayoutEffect"]
}