Skip to content

Commit

Permalink
fix(component-loader): fix component register after load bug
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerkay committed May 19, 2020
1 parent edc4c71 commit faaa57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/planet/src/component/planet-component-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class PlanetComponentLoader {
} else {
const app = this.applicationService.getAppByName(name);
return this.applicationLoader.preload(app).pipe(
// Because register use 'setTimeout',so delay 20
delay(20),
// Because register use 'setTimeout',so delay 50
delay(50),
map(() => {
return globalPlanet.apps[name];
})
Expand Down

0 comments on commit faaa57d

Please sign in to comment.