Hydration Proof

Search documentation

Find a page or section

Do hydration errors affect SEO?

Not directly. What they do to the page can.

Do hydration errors affect SEO? A hydration warning is not itself a documented ranking factor. But the page it leaves behind matters. A mismatch can change visible content, leave incorrect metadata in place, or make the page slower and less stable.

How Google sees a server-rendered React page

Google's JavaScript SEO basics explain that Google crawls, renders, and indexes pages. Googlebot can render JavaScript, but server-rendered content remains useful: it can be available before JavaScript runs.

Check both the HTML your server sends and the page after hydration. A mismatch can make those versions disagree, even if both are accessible.

Do hydration errors affect SEO directly?

Google does not document a ranking penalty for a hydration error in the console. The concern is what the error does to content and page experience.

The effects that can matter

What happensWhyCan it matter for search?
React renders a tree again on the clientIn React 19, a text or structure mismatch makes React throw away the server HTML for that treeMore main-thread work during load, which can hurt responsiveness and paint timing
Content changes after loadThe client renders different text than the server sentLayout shift, and a crawler that does not run JavaScript sees other content than one that does
An attribute stays wrongReact 19 keeps the server's attribute and does not patch itA wrong href, lang or alt stays in the page
<head> differsA title or meta tag rendered differently on the clientSearch engines and link previews can read different metadata
Interactivity breaksLost state and input when a branch is replacedAffects users; not a search signal on its own

Google's Core Web Vitals page gives targets for loading, responsiveness, and visual stability. A hydration mismatch does not automatically fail those measures. Fixing one removes a possible source of extra work or layout movement, but you should measure the page to see the effect.

Metadata is where a mismatch hurts most

Pay particular attention to <head>: the title, description, canonical URL, hreflang links, and robots directives. Google's JavaScript guide warns against setting a different canonical URL with JavaScript. It also notes that noindex in the original HTML may stop Google from rendering the page.

If the server and browser produce different <head> values, crawlers and link previews may receive conflicting information. For example, a title based on a browser-only value can differ from the server title. hydration-proof reports changed head content as HP1014. See how it works for details.

Check the pages that get indexed

Start with the pages in your sitemap. Test a production build:

npx hydration-proof test --sitemap

--sitemap adds the routes in your sitemap and can find it through robots.txt. Review head mismatches and any content that changes after load. Then check boundary, root, and attribute findings. See routes for other ways to select pages.