3 ms·
Can you build a $derived from multiple other $derived? If yes, how do you deal with two $derived sharing some dependencies? Will the end result see temporary,
by aatd86 3y ago
Can you build a $derived from multiple other $derived?
If yes, how do you deal with two $derived sharing some dependencies?
Will the end result see temporary, half-updated values?
- rich_harris 3y ago> 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'
- aatd86 3y agoNice! :)