From 04d0aa6781a38ed8769c53fcc5d13304c4300f95 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 d946feaa7b..7b7bb2b161 100644 --- a/packages/router/src/operators/activate_routes.ts +++ b/packages/router/src/operators/activate_routes.ts @@ -186,10 +186,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 (isDevMode() && 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);