$props, $state, $derived, $effect and $bindable with code that ran on Svelte 5.59 in a SvelteKit 3 project, plus shared state in a .svelte.ts class and the mistakes to avoid.
22 November 2026 · 9 min read