Exposing function/hooks/variables #1316
whysetiawan
started this conversation in
Docs & guides
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
It's a similar question to this discussion, Is it possible to
exposenon-React components, such asfunction, hooks, variables, store (redux, zustand), through module federation?With ModuleFederationV2, all exposed modules are loaded through async boundaries. This means any exposed component must be declared as async.
Is there a way to do something like preloading at first and loading the module synchronously?
Also as mentioned by @jbroma
Can you give an example briefly?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions