{{will-destroy}} does not invoke rendering#19
{{will-destroy}} does not invoke rendering#19LordCHTsai wants to merge 2 commits intoemberjs:masterfrom
Conversation
|
@pzuraq this test passes if the two blocks in the template are swapped. // this fails
this.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 succeeds
this.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
|
|
@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.