Open
Description
Which project does this relate to?
Router
Describe the bug
With SPAs, some document head content is typically set in HTML before JS is run. The current HeadContent implementation seems to not take this into account and duplicate these tags if overwritten by JS.
Your Example Website or App
https://stackblitz.com/edit/github-ahupwy5s?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
- Open the provided example.
- Inspect the document tree in dev tools.
- Title and meta tags from JS are duplicated instead of overwriting the base values from HTML.
Expected behavior
Router should take the document head content defined in HTML as base for modification by JS.
Screenshots or Videos
Platform
- OS: any
- Browser: any
- Version: any
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels