Uncaught Error: You modified ShouldDisplay(dependencyCycles) twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 3.0
- In init, didInitAttrs, didReceiveAttrs, willInsertElement or willRender your code calls something that affects already rendered part of template
- https://ember-twiddle.com/1456540706206c715aed31726dd12629?openFiles=README.md%2Ctemplates.components.my-bar.hbs
- Open JS console to see the code flow.
- Move your code from
willInsertElement
todidInsertElement
, etc...
- Maybe this introduces flickering?
- Causes
A property of X was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.
- Do not write code that changes itself on initial render. If you want to send action during inital render, there should be way to rewrite the code to be computed property.