Retrieve hydration state with useHydration
The
useHydration hook allows a component to retrieve information about the closest HydrationRoot it is a child of. It returns an object containing the current hydration status (hydrated) and the unique identifier (id) of the root.import { useHydration } from '@microeinhundert/radonis'
const hydration = useHydration()
console.log(hydration) // => `{ hydrated: false, id: ':Rl6:' }`