useHydrated hook detects whether rendering is happening after client hydration.ts
import { useHydrated } from "@arkyn/components";
booleanisHydrated (value returned by the hook): boolean
false during SSR/pre-hydration and true after hydration on the client.tsx
import { useHydrated } from "@arkyn/components";function ClientAwareClock() {const isHydrated = useHydrated();if (!isHydrated) {return <div>Loading...</div>;}return <div>{new Date().toLocaleString()}</div>;}
window, document, and navigator.