Skip to content

Commit 1ffce92

Browse files
authored
docs: note before/afterUpdate breaking change (#14567)
...about slotted content behavior Related to #14564
1 parent 4b802db commit 1ffce92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/07-misc/07-v5-migration-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ The `foreign` namespace was only useful for Svelte Native, which we're planning
823823

824824
`afterUpdate` callbacks in a parent component will now run after `afterUpdate` callbacks in any child components.
825825

826+
`beforeUpdate/afterUpdate` no longer run when the component contains a `<slot>` and its content is updated.
827+
826828
Both functions are disallowed in runes mode — use `$effect.pre(...)` and `$effect(...)` instead.
827829

828830
### `contenteditable` behavior change

0 commit comments

Comments
 (0)