DEV Community

Discussion on: Vue: When a computed property can be the wrong tool

Collapse
 
vberlier profile image
Valentin Berlier

Hmm yeah, but if it's the sorting that's expensive then you could have a computed property for the sortedList instead. It's the same thing, the idea is to separate the expensive operation into its own computed property.

Thread Thread
 
joshistoast profile image
Josh Corbett

While you may be right here, I don't think this is supposed to be a perfect example.

yes, this example is silly. Deal with it.