Skip to content

Commit

Permalink
🐛 fix the app instance count error (umijs#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos authored Apr 20, 2020
1 parent 6d90985 commit 07b519a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export async function loadApp<T extends object>(
}

const appInstanceId = `${appName}_${
appInstanceCounts.hasOwnProperty(appName) ? (appInstanceCounts[appName] ?? 0) + 1 : ''
appInstanceCounts.hasOwnProperty(appName) ? (appInstanceCounts[appName] += 1) : (appInstanceCounts[appName] = 0)
}`;

const strictStyleIsolation = typeof sandbox === 'object' && !!sandbox.strictStyleIsolation;
Expand Down

0 comments on commit 07b519a

Please sign in to comment.