-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
{@html} tag is broken during hydration #8213
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
Comments
Transferred to the |
Seems like this issue is still going on. Here's another (very minimalistic) way to reproduce the issue: Just one file:
(Thanks @MacFJA) Svelte 5.0.0 Update (19 oct 2024): Looks like using Runes fixed this specific repo: |
When I wrap |
Seems like using Runes fix this issue |
The repro is incorrect, the |
What should it be? |
It seems svelte team decided to wontfix this issue because of performance issue. |
That's correct - if you want to change the html tag, you can do so using the workaround provided in that link. Therefore closing. |
Describe the bug
There is some weird behaviour with the {@html} tag when:
ssr
istrue
I have created a minimal repro (see below). Here's code that causes the weird behaviour:
I tried to reproduce the bug in a svelte REPL, but with no luck. This makes me feel that the bug is a hydration and/or initialization problem, but i don't know enough of svelte-kit's inner behaviour to know for sure.
Reproduction
Link to minimal repro: https://github.com/MathiasWP/svelte-kit-at-html-bug
Link to Stackblitz: https://stackblitz.com/edit/sveltejs-kit-template-default-qdzjsc
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: