Closed
Description
Describe the bug
The @html tag is buggy on initial page load/refresh.
For example, in the reproduction repo (https://github.com/kelvinsjk/sveltekitHTMLTag), we have const a = 1, b = 2, c = 3
and {a} {@html b} {c}
.
The SSR rendered page correctly shows 123
but upon page load and hydration it becomes 13
instead.
On HMR it then works as intended, and certain combination of text around those tags could lead it to work as well, but other times it doesn't.
Reproduction
https://github.com/kelvinsjk/sveltekitHTMLTag
Logs
No response
System Info
System:
OS: Linux 5.11 Pop!_OS 20.04 LTS
CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Memory: 4.05 GB / 14.60 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.9.0 - ~/.nvm/versions/node/v16.9.0/bin/node
Yarn: 1.22.11 - ~/.nvm/versions/node/v16.9.0/bin/yarn
npm: 7.21.1 - ~/.nvm/versions/node/v16.9.0/bin/npm
Browsers:
Firefox: 88.0.1
npmPackages:
@sveltejs/kit: next => 1.0.0-next.180
svelte: ^3.42.6 => 3.43.1
Severity
annoyance
Additional Information
Can be worked around by re-assigning the variable in action onMount, but rather annoying as I haven't been able to discern a pattern as to when this will strike.
Metadata
Metadata
Assignees
Labels
No labels