Skip to content

Commit

Permalink
Sync svelte docs (sveltejs#1034)
Browse files Browse the repository at this point in the history
sync svelte docs

Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and Rich-Harris authored Dec 17, 2024
1 parent bddf9f6 commit 2f8b59d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-doc
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 2f8b59d

Please sign in to comment.