Is React.Suspense really required when using module federation with react? #957
Replies: 1 comment
-
I can partially answer my own question. If we don't use React.Suspense, then React waits for the promise to resolve before rendering the React tree. But still from technical perspective, it's not a must to use suspense. |
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
-
Hello,
Until recently I was under the impression that React.Suspense is strictly required to be used when using federated modules but that seems to not be the case. However, in all examples I could find online it's used. Could someone please explain to me what is going on?
I understand how it's a good practice to use React.Suspense, but my question is if it really must be there or if the app can work without it.
The following example works:
Host App webpack.config.js
Host App.tsx
Client webpack.config.js
Client Remote Button
Beta Was this translation helpful? Give feedback.
All reactions