You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey i don't sure why it depends on the disable autoPreload . And i support the shareStrategy option , which you can config in runtime/build configuration , maybe this can satisfy your need ?
hey i don't sure why it depends on the disable autoPreload . And i support the shareStrategy option , which you can config in runtime/build configuration , maybe this can satisfy your need ?
hey, shareStrategy is definitely sufficient for this exact purpose, I've been using it in the POC ever since it was implemented and it works as expected 👍
As to why it's necessary: RN startup is complicated - we need to have eager access to react and react-native packages there, but at the same time we want to share them with other federated modules. When it's set to version-first, I think both of these dependencies were set to Promises and this caused Errors in RN env since we need to have sync startup.
Clear and concise description of the problem
Re.Pack supports MF V1, for V2 supports we need adjust how containers are loaded in React-Native environment.
Suggested solution
loadScript
andcreateScript
handlers for React Native environment in@module-federation/sdk
Alternative
loaded-first
strategy and that can come from Re.Pack's own runtime pluginAdditional context
Related Re.Pack issue: callstack/repack#518
Related Re.Pack PR: callstack/repack#674
Validations
The text was updated successfully, but these errors were encountered: