I have run into an interesting issue that I am not sure is a bug or intentional behavior regarding view creation/rendering/destroying on route/model changes.
When I hit a route, a view is created and rendered. It has the id “ember1.” When the model changes (imagine switching to a new persons profile, causing a model change), a new view is created with id “ember2.” Then, after some time (less than a second), our ember2 view is destroyed and the page is updated. From what I can tell, a new view is created and thrown away then the old view is reused.
Is this intentional behavior? If so, I can work with it, but I want to make sure since its rather confusing.
- JSBin: http://emberjs.jsbin.com/vuxideru/
- Browser: Chrome
In the JSBin, clicking a color causes a transition which just changes the simple “model.” I’m pushing the view information to the page (ids).