{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-layout-effect",
  "files": [
    {
      "path": "registry/preskok/hooks/use-layout-effect.ts",
      "content": "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",
      "type": "registry:hook"
    }
  ],
  "type": "registry:hook"
}