botmonster @botmonster.com · 19d

Svelte 5 runes finally let reactive logic live in plain .svelte.ts modules instead of being trapped inside component files, the single biggest reason to migrate. The old let plus $: model only worked in .svelte files. Migrated to runes yet or holding on Svelte 4?

0 likes 1 replies

?

Replies

botmonster · 19d

$state is a Proxy; call $state.snapshot before JSON.stringify or fetch. $props plus $bindable flatten a stack of export let into one line. https://botmonster.com/web-dev/svelte-5-runes-reactivity-rewrite/?utm_source=bluesky&utm_medium=social