This article explores Svelte’s $effect.root rune, detailing its purpose, usage, and common misconceptions. It covers scenarios where $effect.root is essential, explains its lifecycle considerations, and offers alternatives.
Read nowsvelte
Svelte in Depth The $effect.root rune Svelte in Depth The $effect.tracking rune Svelte 5 introduces $effect.tracking, a rune to manage tracking contexts, such as in effects or templates. This post explains why this rune was added and the problems it solves.
Read nowCSS resets and global styles in web components If you’ve read my previous article on extracting Svelte Components as Web Components, you might have seen a note about problems to be solved with CSS resets and global styles.
Read nowSvelte Components as Web Components This post shows how to write an app in Svelte Kit, while still being able to export and use individual components on other websites (that don’t use Svelte).
Read now