ember/no-volatile-computed-properties
January 29, 2026 ยท View on GitHub
๐ผ This rule is enabled in the โ
recommended config.
Volatile computed properties are deprecated as of Ember 3.9.
Rule Details
This rule disallows using volatile computed properties.
Examples
Examples of incorrect code for this rule:
const Person = EmberObject.extend({
fullName: computed(function () {
return `${this.firstName} ${this.lastName}`;
}).volatile(),
});
Examples of correct code for this rule:
const Person = EmberObject.extend({
// Native getter:
get fullName() {
return `${this.firstName} ${this.lastName}`;
},
});