Skip to content

Commit

Permalink
Link to migration guide from <svelte:component> documentation (#14737)
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim authored Dec 17, 2024
1 parent 5529ad2 commit d7e4bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/99-legacy/30-legacy-svelte-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: <svelte:component>
---

In runes mode, `<MyComponent>` will re-render if the value of `MyComponent` changes.
In runes mode, `<MyComponent>` will re-render if the value of `MyComponent` changes. See the [Svelte 5 migration guide](/docs/svelte/v5-migration-guide#Breaking-changes-in-runes-mode-svelte:component-is-no-longer-necessary) for an example.

In legacy mode, it won't — we must use `<svelte:component>`, which destroys and recreates the component instance when the value of its `this` expression changes:

Expand Down

0 comments on commit d7e4bd2

Please sign in to comment.