ember-engines icon indicating copy to clipboard operation
ember-engines copied to clipboard

Duplicate content in routeless engines

Open thousand opened this issue 4 years ago • 1 comments

I spun up a new ember app with a routeless engine in-repo. The engine is mounted in the application.hbs file in the root application. Content that appears in the {{outlet}} of the root app's application.hbs template also appears where there is an {{outlet}} in the routeless engine's application.hbs.

I created a demo app to show this in action.

This is obviously a moot point since theoretically there isn't anything that should appear in the {{outlet}} of a routeless engine and the --type routeless argument doesn't include it, but it is pretty unexpected behavior. Maybe routeless engines can at least throw an error if they have an {{outlet}}?

thousand avatar Aug 13 '20 19:08 thousand

Yikes. This is definitely a bug. I think that it is a bug in {{mount itself (which would make this a problem in Ember).

rwjblue avatar Oct 16 '20 16:10 rwjblue