ember.js - How is selectedSection.savedItems computed property modified twice? -
i looping through saved items in component template , getting following error:
"assertion failed: modified selectedsection.saveditems twice on <wc-app@model:plan-section::ember615:goal> in single render. unreliable , slow in ember 1.x , no longer supported. this code in component template:
{{#each selectedsection.saveditems |item index|}} this saveditem computed property on plan section model:
saveditems: ember.computed('ordereditems.@each.isnew', function() { let itemssaved = this.get('ordereditems').filter( (i) => !i.get('isnew')); return itemssaved; }), when there 1 item or more problem not happen when there 0 items causes error.
how computed property modified twice?
Comments
Post a Comment