Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
migration
by![](https://cdn.sanity.io/images/aho0e32c/production/61b763a05f41a7aea0b3b3265ff0fc83534ef28c-20x21.svg?w=20&fit=max&auto=format)
Codemod
Ember/5/Notify Property Change
Last update
Jul 24, 2024
This codemod removes all calls to propertyWillChange
and replaces all calls to propertyDidChange
with notifyPropertyChange
.
Before
Ember.propertyWillChange(object, 'someProperty');doStuff(object);Ember.propertyDidChange(object, 'someProperty');object.propertyWillChange('someProperty');doStuff(object);object.propertyDidChange('someProperty');
After
doStuff(object);Ember.notifyPropertyChange(object, 'someProperty');doStuff(object);object.notifyPropertyChange('someProperty');
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community