From e498ea9b5a9c869394eec3026dd386d3e7014b8d Mon Sep 17 00:00:00 2001 From: Marley Powell Date: Mon, 21 Sep 2020 13:34:39 +0100 Subject: [PATCH] revert: feat(router): better warning message when a router outlet has not been instantiated (#38920) This reverts commit [1609815]. The warning that was added created more confusion than it solved and also warned for valid use-cases. PR Close #38920 --- packages/router/src/operators/activate_routes.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/router/src/operators/activate_routes.ts b/packages/router/src/operators/activate_routes.ts index 2de203ea4a..a045bfe4a8 100644 --- a/packages/router/src/operators/activate_routes.ts +++ b/packages/router/src/operators/activate_routes.ts @@ -185,10 +185,6 @@ export class ActivateRoutes { // Activate the outlet when it has already been instantiated // Otherwise it will get activated from its `ngOnInit` when instantiated context.outlet.activateWith(future, cmpFactoryResolver); - } else if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) { - console.warn( - `A router outlet has not been instantiated during routes activation. URL Segment: '${ - future.snapshot._urlSegment}'`); } this.activateChildRoutes(futureNode, null, context.children);