Skip to content

Run consumer app without running provider app #3670

Answered by YanPes
dominicarrojado asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the ErrorLoadRemote hook to manipulate the payload based on the lifecycle of your module federation connection.
https://module-federation.io/blog/error-load-remote.html#errorloadremote-hook

With this you can tap into the args.afterResolve step to intercept a 503 response of the mf-manifest.json http call.

Just render some placeholder or an empty container based on your needs to prevent the application from crashing.

Let me know if this resolved your issue. :-)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@YanPes
Comment options

@dominicarrojado
Comment options

@YanPes
Comment options

@dominicarrojado
Comment options

@YanPes
Comment options

Answer selected by dominicarrojado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants