Skip to content

Commit 0a3abd2

Browse files
committed
fix(application-loader): fix preload app load component not display
1 parent 0b2684f commit 0a3abd2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/planet/src/application/planet-application-loader.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,18 +440,18 @@ export class PlanetApplicationLoader {
440440
debug(`${app.name} start preloading`);
441441
return this.startLoadAppAssets(app).pipe(
442442
switchMap(() => {
443-
return this.ngZone.runOutsideAngular(() => {
444-
if (directBootstrap) {
445-
return this.bootstrapApp(app, 'hidden');
446-
} else {
443+
if (directBootstrap) {
444+
return this.bootstrapApp(app, 'hidden');
445+
} else {
446+
return this.ngZone.runOutsideAngular(() => {
447447
return this.takeOneStable().pipe(
448448
switchMap(() => {
449449
debug(`${app.name} start bootstrap on stable`);
450450
return this.bootstrapApp(app, 'hidden');
451451
})
452452
);
453-
}
454-
});
453+
});
454+
}
455455
}),
456456
map(() => {
457457
return getPlanetApplicationRef(app.name);

0 commit comments

Comments
 (0)