Re:Svelte 5: Runes
by rich_harris on Wednesday September 20, 2023 @05:48PM
(#37590682)
> Can you build a $derived from multiple other $derived?
Yes
> Will the end result see temporary, half-updated values?
No. It uses a push-pull mechanism — dependency changes don't result in a re-evaluation until something asks for the value, meaning derivations are 'glitch-free'
If yes, how do you deal with two $derived sharing some dependencies?
Will the end result see temporary, half-updated values?