-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to handle unavailability of micro App in the host application #718
Comments
Hi, this is the final step in enabling caching with Repack. If this issue persists, the user will remain stuck on the error screen as it also gets cached too |
Hey @vlack-coder, this is a very valid case, I currently have no capacity to handle this but we will look into this in the future for sure. Do you care do some tinkering on your own? I'm happy to help and answer some questions along the way to unblock you if needed |
@jbroma thanks for your response. I'd also like to contribute to this discourse and more issues but can you recommend resources that'd give me more insights on RePack and Webpack in relation to module federation and react native, Thanks. |
For Re.Pack, we got our docs at re-pack.dev, but they might be slightly outdated in some places. For the Module Federation stuff, there is the official docs but thats mostly for MF 2 - but it will be the only supported version from V5 forward anyways. There are also multiple articles from Zack Jackson (the creator of MF) available here. All in all, it's always down to reading the codebase itself I'm afraid 😅 |
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days. |
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days. |
Description
Currently there's no way to reload the mini app if fetching fails due to network failure or any other type of failure
My Mini App
My Error Boundary
In my error boundary, There's a button that calls
ScriptManager.shared.invalidateScripts(['Startimes',])
But it does not do anything....
Have tried unmounting and remounting, it's the same thing.
Currently the only way to reload the micro app is to reopen the application and it gets invalidated but if I enable caching, and I reopen the app, I'd be stuck on the Error Boundary screen. So this is the only blocker for enabling caching for me.
There's also a closed issue on this - #526
Also when I logged the ScriptId, I got values like
node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_helpers_sli-1b78c7
vendors-node_modules_react-native_Libraries_TurboModule_TurboModuleRegistry_js
also I get the scriptId for the mini app - "Startimes"
Suggested solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: