Oh look! Deep, fine-grained reactivity is landing in Svelte 5. As described in this PR submitted a few minutes ago: github.com/sveltejs/svelt… @Rich_Harris just to make sure: This doesn't mean class fields will go away? I like both approaches. :)
@_mql yep, we're keeping class state fields! i find them a really nice tool, and they play really well together. from an internal design document:
@_mql @Rich_Harris This removes almost all my hesitation about the new API and is peak svelte: Really easy and dirty for most situations, but the option to break out and do something more complex with more fine-grained control if need be. Exquisite.
@_mql @Rich_Harris Happy to see the new change! Classes are great but I’d love to have sometimes a simpler syntax!
@_mql @Rich_Harris we can directly modify the var with mutating methods like .push( ) ? that looks awesome, no more unnecessary copying with ...spread