Skip to content

Commit

Permalink
🎨 format code (#127)
Browse files Browse the repository at this point in the history
wubaiqing authored and kuitos committed Nov 4, 2019
1 parent 16092dc commit dd41251
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -159,10 +159,8 @@ export function registerMicroApps<T extends object = {}>(
unmount,
unmountSandbox,
async () => execHooksChain(toArray(afterUnmount), app),
async () => {
// remove the app content after unmount
render({ appContent: '', loading: false });
},
// remove the app content after unmount
async () => render({ appContent: '', loading: false }),
async () => {
if ((await validateSingularMode(singularMode, app)) && prevAppUnmountedDeferred) {
prevAppUnmountedDeferred.resolve();

0 comments on commit dd41251

Please sign in to comment.