How to NOT throw "not found" when route is partially matched? #2108
Replies: 1 comment 4 replies
-
I am also stuck at this point. Did you find anything ? |
Beta Was this translation helpful? Give feedback.
-
I am also stuck at this point. Did you find anything ? |
Beta Was this translation helpful? Give feedback.
-
I have several micro-frontends and I use module-federation to compose a (large) single page application. The MFEs can be nested, so that one MFE pulls in several other MFEs via module-federation. In my root app I'm currently expermenting with TanStack router, where at a certain URL I want to load a certain MFE.
Let's say at /team/app1 loads app1 and /team/app2 loads app2. So far no problem /team/$path matches the URLs and the MFEs are loaded. The problem begins, however, when the MFEs also do routing. For example, app2 redirects to /app2/home on first render. My full path now becomes /team/app2/home. But /team/$path does not match that route and so I get a "Not found". Is there a way to configure a router to basically stop routing at a certain point or to not throw a "not found" on partial match?
Beta Was this translation helpful? Give feedback.
All reactions