Replies: 1 comment 5 replies
-
@zllkjc Request to take a look at this. Its almost more than 2 week but no update on thread. Is it the problem of the way question is framed. Eagerly waiting for this to resolve. Tried lot of ways but no solution, no example in doc about how to persist any component across route change. Please correct if wrong anywhere |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have created 4 apps masterApp, Header, Footer, Table and wanted to render Header and Footer always irrespective of route and Table component should get loaded on navigating to /table route.
pastebin code for masterApp/routes/layout.tsx - https://pastebin.com/4BbhYrSe
pastebin code for masterApp/routes/page.tsx - https://pastebin.com/sKkY4fv7
While initial load everything works perfectly fine.
If Heder and Footer are rendered as MFE before and after
<Outlet />
and clicked on Load table route then Table app is getting rendered but Header and Footer displays 404, not sure why?If rendered text before and after
<Outlet />
with Math.random() number (just to see if it rerenders or not on click of /table route) then in that case that text persist as is w/o changing randomly generated number. It means it is not rerendering.Not able to get where am I going wrong for having 2 types of behaviour. In case of rendering Header and Footer as MFE, they also should not rerender or display 404 and should persist.
Pastebin for masterApp modern.runtime.ts config - https://pastebin.com/WPG3RWB7
I am not sure if configuring the router is really required or not otherwise navigating to /table would not have loaded Table MFE which is working currently, maybe because of below setup (files inside routes folder based on conventional routing)

Tried lot of other options suggested by Github copilot but none of them is working and stuck here since few days and would appreciate any help.
Let me know if need any more details to debug the issue.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions