Computed properties in Ember Octane?

I want to know the official recommendation regarding computed properties. At the guides they are mentioned as Ember legacy features. I.e sort is/was a great feature of Ember.

Do you recommend refactoring sort-computed properties to Ecmascript-getters using ArrayProxy’s sort-methods?

I actually recommend using getters and not using the prototype extensions. You can use any JS tool for sorting, including utility packages like lodash. You can also reach for macro-decorators if you’re really wanting to do it with that shorthand.

1 Like