Ember
migration
byCodemod

Ember/5/Notify Property Change

/icons/calendar.svg

Last update

Jan 10, 2025

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

background illustrationGet Started Now