Replies: 1 comment 2 replies
-
Reactive classes have higher performance if many instances are used. The properties are transformed to access inner signals while for objects a Personally, I would probably still prefer plain objects unless the performance boost is necessary, though I have not used Svelte 5 for anything of substantial size yet. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
all cool kids are now using classes for things like state management and services and everything. i don't understand why.
i mean i can only see downsides: OOP syntax (subjective), gotchas with context binding:
does using classes have clear benefits over functions? or is it just a matter of taste? which one do you prefer and why?
Beta Was this translation helpful? Give feedback.
All reactions