Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
migration
by
Codemod
Ember/5/Cp Volatile
Made for
Ember
Last update
Apr 23, 2024
This codemod removes all calls to volatile()
and ensures that native getters are directly used.
Before
const Person = EmberObject.extend({fullName: computed(function () {return `${this.firstName} ${this.lastName}`;}).volatile(),});
After
const Person = EmberObject.extend({get fullName() {return `${this.firstName} ${this.lastName}`;},});
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community