Module Federation with Next.js in a React Shell: Handling Full Page Reloads
Here’s what we’ve tried so far:
• Customizing the <Link> component to prevent reloads • Leveraging next/router for navigation within the Next.js app
Despite these efforts, we haven’t managed to resolve the issue. We’re considering developing a custom solution to address this, but we’d greatly appreciate any suggestions or insights from the community.
We are specifically interested in:
1. Approaches to prevent full page reloads while using next/link in a module federation setup. 2. Workarounds or alternative strategies to integrate Next.js within a React shell without reloading the entire application. 3. Best practices and known issues related to module federation with Next.js and React.
Any guidance or experiences you can share would be extremely valuable. Thanks for your help!