persona-community-5/.pnpm-store/v3/files/d3/1ef42112e177de873398e0c56d63a85994894d99122a021d792a55160a0b82024ffb2fe8af54b51c9a54191f1640a1aa3048057d31c0ca178e5432b5b9f743
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
693 B
Plaintext

{
"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"]
}