Uh oh!
There was an error while loading. Please reload this page.
{{will-destroy}} does not invoke rendering - #19
Conversation
@pzuraq this test passes if the two blocks in the template are swapped. // this failsthis.owner.register('template:components/test-component',hbs` {{#if this.showMessage}} <div data-dummy>Hello Ember</div> {{/if}} {{#if @shouldShow}} <div {{will-destroy (action "toggle")}}></div> {{/if}} `);// but this succeedsthis.owner.register('template:components/test-component',hbs` {{#if @shouldShow}} <div {{will-destroy (action "toggle")}}></div> {{/if}} {{#if this.showMessage}} <div data-dummy>Hello Ember</div> {{/if}} `);The reason for this is that This is easy enough to see in _renderRoots. The rfc explicitly states that The obvious fix is to batch destroyables and invoke the modifiers in
|
pzuraq
commented
Dec 17, 2019
@hjdivad thanks for digging in and helping us root cause this!
|
ATM, CI is failing due to unsupported Node engine. I'd like to confirm that the changes made to the backtracking assertion in Ember 3.15 properly trigger an eager failure in these cases.
…/eslint-plugin-ember-8.5.1
Uh oh!
There was an error while loading. Please reload this page.