{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-hydration",
  "title": "useHydration",
  "description": "True once the component has mounted on the client.",
  "files": [
    {
      "path": "registry/khaeli/hooks/use-hydration.ts",
      "content": "'use client'\n\nimport { useEffect, useState } from 'react'\n\n/**\n * Returns true once the component has mounted on the client.\n * Use this to delay rendering state-dependent UI until after\n * Zustand has rehydrated from localStorage.\n */\nexport function useHydration() {\n  const [hydrated, setHydrated] = useState(false)\n\n  useEffect(() => {\n    setHydrated(true)\n  }, [])\n\n  return hydrated\n}\n",
      "type": "registry:hook"
    }
  ],
  "type": "registry:hook"
}