-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
HashedStylesheet and Meta lead to meta mixing #3633
Comments
Ah, ok. This is an interesting kind of hydration error. Like most hydration errors, it happens because you are rendering different things on the client and on the server; but it happens in a confusing way, because of the particularities of how In particular: note that in this example (where you put On the client, however, there are only two meta tags hydrated: the two Normally I'd say to move PR #3654 would fix this by only allowing |
Yep, i did just the same in my application. |
Describe the bug
Meta register should not be called twice in shell, otherwise it's breaking meta tags.
So adding HashedStylesheet to shell leads to meta mixing/breaking, because it's using meta register. Changing it to use plain
view!{<link...
resolves the issue.Leptos Dependencies
0.7
To Reproduce
Steps to reproduce the behavior:
<HashedStylesheet id="leptos" options=options />
to the shell.<A>
tag.https://github.com/leptos-rs/leptos/blob/main/examples/ssr_modes_axum/src/app.rs#L201
Screenshots
Screen.Recording.2025-02-17.at.18.23.40.mov
Additional context
Coming from #3629
The text was updated successfully, but these errors were encountered: