Skip to content

Commit

Permalink
Merge pull request #1110 from emberjs/fix-canary
Browse files Browse the repository at this point in the history
[FIX] This fixes ember-canary
  • Loading branch information
stefanpenner authored Aug 23, 2021
2 parents 9219247 + e2904bd commit bbb684e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,14 @@ export default function setupRenderingContext(
let OutletView = owner.factoryFor
? owner.factoryFor('view:-outlet')
: owner._lookupFactory!('view:-outlet');
let toplevelView = OutletView.create();

let environment = owner.lookup('-environment:main');
let template = owner.lookup('template:-outlet');

let toplevelView = OutletView.create({
template,
environment,
});

owner.register('-top-level-view:main', {
create() {
Expand Down

0 comments on commit bbb684e

Please sign in to comment.