From 1ffce92d903eaf8cd1b8e4a520f3e8d581f619fe Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:55:15 +0100 Subject: [PATCH] docs: note before/afterUpdate breaking change (#14567) ...about slotted content behavior Related to #14564 --- documentation/docs/07-misc/07-v5-migration-guide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/07-misc/07-v5-migration-guide.md b/documentation/docs/07-misc/07-v5-migration-guide.md index 687f8e93b1..09ea84f26c 100644 --- a/documentation/docs/07-misc/07-v5-migration-guide.md +++ b/documentation/docs/07-misc/07-v5-migration-guide.md @@ -823,6 +823,8 @@ The `foreign` namespace was only useful for Svelte Native, which we're planning `afterUpdate` callbacks in a parent component will now run after `afterUpdate` callbacks in any child components. +`beforeUpdate/afterUpdate` no longer run when the component contains a `` and its content is updated. + Both functions are disallowed in runes mode — use `$effect.pre(...)` and `$effect(...)` instead. ### `contenteditable` behavior change