4 ms·
As someone who just started Svelte two days ago, my naïve take is that this feels like adding verbosity. 1. Is there no way for the compiler to automatically,
by notfed 3y ago
As someone who just started Svelte two days ago, my naïve take is that this feels like adding verbosity.
1. Is there no way for the compiler to automatically, recursively find reactive dependencies?
2. Assuming no, is there not a more terse way to decorate reactive expressions?
- onsclom 3y agoInstead of finding reactive dependencies at compile time, `$effect` and `$derived` automatically track dependencies at runtime. This might feel like it would result in a performance decrease, but it is what SolidJS has been doing. And SolidJS is #1 in most performance benchmarks!