Skip to content

Commit 686b086

Browse files
authored
docs: Move note on runes mode that ended up in wrong section. (#12876)
1 parent 6448e07 commit 686b086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sites/svelte-5-preview/src/routes/docs/content/03-appendix/03-deprecations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ When authoring custom elements, use the new [host rune](/docs/runes#$host) to di
8282
>greet</button>
8383
```
8484

85+
Note that using `$props` and `$host` will put you in [runes mode](/docs/runes) — be sure to update your props and state accordingly.
86+
8587
## `<svelte:component>` in runes mode
8688

8789
In previous versions of Svelte, the component constructor was fixed when the component was rendered. In other words, if you wanted `<X>` to re-render when `X` changed, you would either have to use `<svelte:component this={X}>` or put the component inside a `{#key X}...{/key}` block.
@@ -112,8 +114,6 @@ A derived value may be used in other contexts:
112114
+ <Component />
113115
```
114116

115-
Note that using `$props` and `$host` will put you in [runes mode](/docs/runes) — be sure to update your props and state accordingly.
116-
117117
## `immutable`
118118

119119
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).

0 commit comments

Comments
 (0)