Skip to content

Commit 39b4c71

Browse files
committed
docs: note hydration comments change
closes #10375
1 parent c18221d commit 39b4c71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ Since these mismatches are extremely rare, Svelte 5 assumes that the values are
319319
<img {src} />
320320
```
321321

322+
### Hydration works differently
323+
324+
Svelte 5 makes use of comments during server side rendering which are used for more robust and efficient hydration on the client. As such, you shouldn't remove comments from your HTML output if you intend to hydrate it, and if you manually authored HTML to be hydrated by a Svelte component, you need to adjust that HTML to include said comments at the correct positions.
325+
322326
### `await` blocks delay render
323327

324328
In Svelte 4, an `{#await ...}` block immediately renders the pending section. In some cases, this is wasteful, because the promise is already resolved.

0 commit comments

Comments
 (0)