diff --git a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/03-deprecations.md b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/03-deprecations.md index 73e966af38..e4fdcc86b3 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/03-deprecations.md +++ b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/03-deprecations.md @@ -82,6 +82,8 @@ When authoring custom elements, use the new [host rune](/docs/runes#$host) to di >greet ``` +Note that using `$props` and `$host` will put you in [runes mode](/docs/runes) — be sure to update your props and state accordingly. + ## `` in runes mode In previous versions of Svelte, the component constructor was fixed when the component was rendered. In other words, if you wanted `` to re-render when `X` changed, you would either have to use `` or put the component inside a `{#key X}...{/key}` block. @@ -112,8 +114,6 @@ A derived value may be used in other contexts: + ``` -Note that using `$props` and `$host` will put you in [runes mode](/docs/runes) — be sure to update your props and state accordingly. - ## `immutable` The `immutable` compiler option is deprecated. Use runes mode instead, where all state is immutable (which means that assigning to `object.property` won't cause updates for anything that is observing `object` itself, or a different property of it).