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
Darryl Yeo đ ïž
@darrylyeo
https://svelte.dev/docs/svelte/$derived#Overriding-derived-values
1 reply
0 recast
1 reaction
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