4 ms·
As someone who has not used Svelte 5: What is the significance of his change?
by arcanemachiner 2y ago
As someone who has not used Svelte 5: What is the significance of his change?
- braebo 2y agohttps://github.com/sveltejs/cli/issues/487#issuecomment-2743253910 https://github.com/sveltejs/cli/issues/487#issuecomment-2743...
- deleted 2y ago[deleted]
- OJFord 2y agoAnd for catching up on what a 'rune' is.. that's the `$derived` and `$effect` there, basically $-prefixed built-in things? Has that entirely replaced `$:` or is it as well as? Svelte seems to have got more complicated since I last used it!
- tiltowait 2y agoHonestly, it's simpler than it was. There were many cases in which `$:` wouldn't work the way you might expect; meanwhile, $derived et all seem to always work without a hitch. It definitely looks less elegant, but I like it much more. https://svelte.dev/blog/runes https://svelte.dev/blog/runes
- m00dy 2y agobefore this change, derived values were readonly (it makes sense because, if you change the derived value, what's going to happen to the underlying value ?) but now they are writable.