How to Create a UI and Show It in the Shell if a Remote Is Down #3444
Unanswered
basit-qayoom
asked this question in
Q&A
Replies: 1 comment
-
Hey there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to Create a UI and Show It in the Shell if a Remote Is Down
Introduction
I'm currently working on a Module Federation setup using
@module-federation/enhanced
(v0.7.0) withrepack
. I've implemented a customFederationRuntimePlugin
to handle scenarios where a remote module is offline. My current plugin logs an error message when a remote fails to load and provides a fallback function.The goal is to improve the user experience by showing a UI component in the shell application whenever a remote is unavailable, instead of just logging errors or displaying textual error messages.
Current Plugin Code
Here is the
FederationRuntimePlugin
I am using:This handles errors by logging the remote ID and error message and returning a fallback function with an error message. However, it does not display a UI in the shell.
Requirements
• When a remote module fails to load, the shell should display a user-friendly UI to inform the user about the issue.
• The UI should be customizable and can optionally include retry logic or error-specific details.
• The solution should integrate smoothly with the runtime plugin.
Beta Was this translation helpful? Give feedback.
All reactions