💡 I discovered an interesting quirk in #Svelte 5 when using the $state rune to store an object.
Simple objects are reactive, but class instances are not.
So how do you get class instance properties to be reactive?
Here's my solution 👇
https://chasingcode.dev/blog/svelte-5-state-rune-class-vs-object-reactivity/
=> More informations about this toot | View the thread | More toots from brbcoding@indieweb.social
=> View svelte tag This content has been proxied by September (3851b).Proxy Information
text/gemini