lundi 10 juillet 2017

Ember.js Assetion failed due to modification after rendering

I am developing a very simple ember component structure and I keep encountering the same error:

Assertion Failed: You modified "pipeline.status" twice on <frontend@model:pipeline-instance::ember497:59636F5284D6CE0009000002> in a single render. It was rendered in "component:pipeline-manager" and modified in "component:pipeline-manager". This was unreliable and slow in Ember 1.x and is no longer supported. See http://ift.tt/2aKLECc for more details.

I have stripped down all the functionality to this very simple code and I keep having the assertion error.

The pipeline-instance.js model:

export default DS.Model.extend({
  status: DS.belongsTo('status')
});

The pipeline-manager.js is empty.

The pipeline-manager.hbs template:

<div class="pipelines--show">
  <div class="row status">
    Current status: 
  </div>
</div>

package.json:

"devDependencies": {
  ...
  "ember-cli": "2.11.1",
  "ember-cli-app-version": "^2.0.0",
  ...
 }

It seems that the only way I manage to get rid of the error is by using ember s --prod




Aucun commentaire:

Enregistrer un commentaire