Content
@
0 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
Small but monumental update to Svelte 5: state variables defined with the `$derived()` rune can now be directly assigned to, just like variables from `$props()`. This makes optimistic updates and other situations involving ephemeral state much simpler to write! https://github.com/sveltejs/svelte/pull/15570
2 replies
2 recasts
14 reactions
Fucory
@fucory
I don’t know what to think this looks like something my first reaction is to ban anyone from using the feature. But that’s just a gut reaction I want to think about it some
1 reply
0 recast
1 reaction
Darryl Yeo 🛠️
@darrylyeo
Part of me thinks it was a missed opportunity that `const` / `let` is used to signify framework-level writability instead of user-level writability
1 reply
0 recast
1 reaction
Fucory
@fucory
That’s an interesting idea
0 reply
0 recast
1 reaction