-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Describe the bug
When importing a SubApp it only works the first time it loads. If I navigate away from the SubApp page and come back then it no longer mounts / displays.
Here is a repo to demo the behaviour: https://github.com/Reiss-Cashmore/nuxt-single-spa-bug
Screenshots
Bug.mp4
To Reproduce
Steps to reproduce the behavior:
- Build app as UMD and use import()
- Click on NuxtLink to navigate to SubApp
- Click on NuxtLink to navigate to Home
- Click on NuxtLink to navigate to SubApp
- SubApp is not shown
I've noticed that the SubApp unmount() and beforeUnmount() in MFE.js do not get called for some reason??
environment information
- OS: Mac OSX 10.14.6
- Env: Node 14.6
- Browser: Chrome
Metadata
Metadata
Assignees
Labels
No labels