A. | B.
{{#each items as |item|}} | {{#each items as |item|}}
{{!...}} | {{!...}}
{{else}} | {{/each}}
{{my-component}} | {{#unless items.length}}
{{/each}} | {{my-component}}
| {{/unless}}
In example A. the willDestroyElement hook is not firing for {{my-component}} when it is torn down.
It works for example B.
jsfiddle