didReceiveAttrs with mut property


Ember: 2.18.0

I don’t know is this normal behavior or not. If I have mut property in child component from parent component and change value in didReceiveAttrs the value is not changed in parent component.

In didRender mut work ok.

I made twiddle test.


didReceiveAttrs the component not bind attributes yet in it first run. If the props change and the component still rendered it will change.

didReceiveAttrs runs after init, and it also runs on subsequent re-renders, which is useful for logic that is the same on all renders. It does not run when the re-render has been initiated internally.