DEV Community

Discussion on: The Cost of Consistency in UI Frameworks

Collapse
 
ryansolid profile image
Ryan Carniato • Edited

All the frameworks have a way to bypass their default behavior(React has flush, Solid batch, Vue and Svelte tick) but that isn't distinguishing, because ultimately we all end up having to choose a default. I didn't show any favoritism in that sense as I didn't focus on those as part of their description and instead focused on the behavior.

I don't have any malice in calling Svelte's default approach inconsistent, and even show some admiration in the conclusion.

Given this comment section, I understand the desire to come to the defense of your frameworks. I wasn't taking potshots, but noting this wasn't a simple question or answer. So I choose to take any comments to sincerity of my character under that light.

Thread Thread
 
sarcevicantonio profile image
Antonio Sarcevic

That's totally fair, and i wasn't aware all frameworks had a tick-like util.
I still feel it's consistent in my mental model of svelte: The variable changes because we assigned to it (like js), but reactivity (i.e. $: and template bindings) hasn't kicked in since the last round of invalidation. Use tick to force.
I guess I don't really get why it's inconsistent for you.