-
-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TanStack Start and React 19 Metadata Tags #3050
Comments
Commenting this line out from
Seems to fix the problem, however. I don't know why and why is it getting the meta tag from react as opposed to the router. |
can you please provide a complete minimal example? do you render the Meta component from start ? |
Here's the codebase I am working with atm. edit: and No I am rendering the meta component in the header component using react 19's tag. Tags rendered by the createRootRoute are not affected. |
but you are rendering the the obvious solution right now is not using alternatively, don't use |
Removing the |
This needs investigation into how React 19 moves elements into the |
Which project does this relate to?
Start
Describe the bug
The issue is simple. I am attempting to use React 19's metadata tags to manage my metadata, but each components is being rendered twice on the DOM, even after adding a key to it. This is in Development and Production.
I am sure this is SSR issue. Also If someone someone has a solution to dynamically render head meta elements using the router directly that would be great, (I would like the loader context to fetch the updated context not the initial state). My current solution is straight up DOM manipulation.
Your Example Website or App
edit: tanstack-react19 Repo
Steps to Reproduce the Bug or Issue
Use any tag inside a react component.
Expected behavior
Rendering a single tag in the head
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: