Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ModernJS + Application Level Module Federation + SSR + Data Fetching #7377

azinod started this conversation in General
Discussion options

Hello,

In my company, we started to build a "web platform" focused on enabling vertical teams to maintain their own microfrontends, which would be used as remote modules in our host app (via module-federation).

ModernJS was the first framework we picked to experiment with the idea since it seemed to be well integrated with module-federation. With that being said, our needs are:

  • Remote modules need to be SSR and be able to use server data loaders (e.g. fetch data on the server)
    • Preferably, remote modules should be Application-level (however we can workaround that, so not a hard requirement)

We got module-federation + SSR working with ModernJS, however we couldn't get the data loader to work in the remote SSR module. The documentation for this is currently incomplete (see screenshot below)
image

So wanted to ask if this is currently doable in the latest ModernJS versions or not.

You must be logged in to vote

Replies: 1 comment

Comment options

Thanks for your feedback.

The latest versions of Modern.js and MF already support it. You can first refer to the doc of mf. We will provider the documentation in Modern.js as soon as possible.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /