Skip to main content

<svelte:component>

In runes mode, <MyComponent> will re-render if the value of MyComponent changes. See the Svelte 5 migration guide 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:

<svelte:component this={MyComponent} />

If this is falsy, no component is rendered.

Edit this page on GitHub

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy