Skip to content

Inconsistent hydration: some tags in the head are duplicated, eg. application/ld+json #6569

@kcoet

Description

@kcoet

Which project does this relate to?

Start

Describe the bug

Some tags appear to be duplicated during hydration, even though the server has sent them correctly if we look at them with view-source:[url]

Image

Your Example Website or App

https://stackblitz.com/edit/github-zpekad3w?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

  1. run npm run build
  2. start production server npm run start
  3. open production URL
  4. check elements tab on browser dev tools, the see application/ld+json script

It looks like there are 2 even though I only inserted 1. The duplicate tag appears without content.

Expected behavior

Hydration should produce matching elements according to the head content sent by the server.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.157.18
  • OS: Linux
  • Browser: Chrome
  • Browser Version: 144.0.7559.110
  • Bundler: vite
  • Bundler Version: 7.3.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions