useHydrated
Returns false during server-side rendering and initial hydration, and true once hydrated on the client.
Loading preview...
The useHydrated hook uses useSyncExternalStore to return false during server rendering and the initial hydration pass, and true once the component is hydrated in the browser—avoiding hydration mismatches without triggering cascading useEffect state updates.