entioentio / singlespa-poc-repro

Reproduction of single-spa PoC issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Installing deps

yarn setup

Starting container...

yarn start_container

...and serving children apps:

yarn start_navbar

yarn start_app_one

yarn start_app_two

All ports are hardcoded - container: 9000, apps: 8031-8033

Reproduction

If you open the container the navigation is visible. Clicking on AppOne or AppOne/RouteOne navigates correctly to App one and the right route.

However, when you click AppTwo( it always tries to resolve it's route from inside of the AppOne e.g. the URL becomes http://localhost:9000/app-one/app-two instead of http://localhost:9000/app-two).

I ve tried number of things inclouding follwoing the stack trace by the navigation. I found that that same calls are being done twice, but cannot find a cause. I think that the configuration is incorrect but haven't been able to solve it for 6 hours.

About

Reproduction of single-spa PoC issue


Languages

Language:Vue 41.9%Language:TypeScript 22.6%Language:EJS 16.3%Language:JavaScript 11.9%Language:HTML 7.3%