Skip to content

Sub App only works first time #46

@Reiss-Cashmore

Description

@Reiss-Cashmore

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:

  1. Build app as UMD and use import()
  2. Click on NuxtLink to navigate to SubApp
  3. Click on NuxtLink to navigate to Home
  4. Click on NuxtLink to navigate to SubApp
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions