ember-elsewhere
ember-elsewhere copied to clipboard
Error on canary: `{{#with}}` is deprecated
Hello there!
We are running into this deprecation on our canary builds:
Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in ember-elsewhere/templates/components/from-elsewhere.hbs
`{{#with}}` is deprecated. If you always want the block to render, replace `{{#with}}` with `{{#let}}`. If you want to conditionally render the block, use `{{#let}}` together with `{{#if}} instead. ('ember-elsewhere/templates/components/from-elsewhere.hbs' @ L6:C6)
Looks like it comes from this template:
https://github.com/ef4/ember-elsewhere/blob/dadfa69ab5be259ea83d6bed1831bdb7989691cb/addon/templates/components/from-elsewhere.hbs#L6-L8
Happy to make a PR if you'd like. I don't know enough about ember-elsewhere to know if I should make the block render conditionally or if just replacing {{#with}} with {{#let}} would be appropriate. Thoughts?
The deprecation for "property fallback" (i.e. use this.active.lastObject.component instead of active.lastObject.component) is about to land on canary as well
this was fixed with https://github.com/ef4/ember-elsewhere/pull/50