app-already-mounted: Micro app already mounted
Cause
A handle's mount() was called, but when that mount got its turn the app was already mounted. Common cases:
- The handle returned by
loadMicroAppmounts on its own, and the caller calledmount()again. mount()was called twice on the same handle without anunmount()in between.
A handle runs its mount() and unmount() calls one after another in call order, and each one requires the app to be in the matching state.
Troubleshooting
- Check whether
mount()is called right afterloadMicroApp. - Check that
mount()andunmount()calls on the same handle come in pairs. - Use
getStatus()to confirm which state the app was in whenmount()was called.
Solution
You do not need to call mount() after loadMicroApp; await mountPromise instead. To mount again, call unmount() first and then mount().
