Skip to content

Commit 759c558

Browse files
committed
Revert "refactor(@angular/ssr): handle promise-like results from loadChildrenHelper"
This reverts commit 64c74b4.
1 parent 2e23f5a commit 759c558

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/angular/ssr/src/routes/ng-routes.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,7 @@ async function* handleRoute(options: {
205205
)
206206
: parentInjector;
207207

208-
const loadedChildRoutes = await loadChildrenHelper(
209-
route,
210-
compiler,
211-
routeInjector,
212-
).toPromise();
213-
208+
const loadedChildRoutes = await loadChildrenHelper(route, compiler, routeInjector);
214209
if (loadedChildRoutes) {
215210
const { routes: childRoutes, injector = routeInjector } = loadedChildRoutes;
216211
yield* traverseRoutesConfig({

0 commit comments

Comments
 (0)