|
|
|
|
|
by nixpulvis
254 days ago
|
|
I've never used Svelte before, so maybe I'm misunderstanding what they mean by tracking dirty, but this bit confused me. > This requires the framework to track which components are dirty. Vue does this at runtime, Svelte handles it at compile time. How can it possibly track this at compile time? Best I could see if tracking where those bits could be set, but not actually setting them. |
|
But Svelte 5 changed to use a signals based approach just like Vue and Solidjs, which is runtime based and more flexible. Svelte chose to add some compile time syntax sprinkles on top that they call "runes", because they like a simpler syntax. But signals are fundamentally a runtime concept.