Skip to content

Commit

Permalink
fix(component-loader): fix load component error when prod env #132
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerkay authored and luxiaobei committed Nov 9, 2020
1 parent b738b26 commit 30540b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function loadApp1Component(appModuleRef: NgModuleRef<any>, config?: Partial<Plan
'app1-projects',
Object.assign({}, { container: hostElement }, config)
);
tick(50);
tick(200);
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/planet/src/component/planet-component-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class PlanetComponentLoader {
const app = this.applicationService.getAppByName(name);
return this.applicationLoader.preload(app).pipe(
// Because register use 'setTimeout',so delay 50
delay(50),
delay(200),
map(() => {
return globalPlanet.apps[name];
})
Expand Down

0 comments on commit 30540b2

Please sign in to comment.