Skip to content

Components cause hydration html changed warning #165

Description

@KaylaSolace

hello, I have a simple component that should console.log something when it is hovered just for testing, however none of it's javascript gets loaded to the client version of the page when loaded, and the console says

[svelte] hydration_html_changed
The value of an `{@html ...}` block near node_modules/​carta-md/​dist/​Markdown.svelte:47:0 changed between server and client renders. The client value will be ignored in favour of the server value
https://svelte.dev/e/hydration_html_changed client.js:2949:15

the component works in the if typed manually but not if loaded as part of the initial value, or when loaded as either pre-rendered or via , causing the aformentioned error

I am a tad confused as to how I am supposed to use components perhaps, but this issue even happens when I simply try to replace a h1 with the standard svelte('h1', TestComponent) system :(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions