Should not use Volatile Computed PropertiesJS-0810
ember
Volatile computed properties are deprecated as of Ember 3.9.
Bad Practice
const Person = EmberObject.extend({
fullName: computed(function () {
return `${this.firstName} ${this.lastName}`;
}).volatile()
});
Recommended
const Person = EmberObject.extend({
// Native getter:
get fullName() {
return `${this.firstName} ${this.lastName}`;
}
});