-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
No longer "A solution recommended by React Team"? #888
Comments
So React.lazy and Suspense will just work for SSR and bundle splitting now? |
Haven't tried it yet myself, but according to the docs, seems like. |
I just looked at the SSR example given and it's not any more "just works" than loadable-components. Still need to wire up the initial chunks (via the new renderToPipeableStream), wire up the asset manifest from webpack, and inject static CSS if you use that. The wiring is also a bit different. Also doesn't work with renderToString (for SSR purposes at least). However the demo does indeed render the React.lazy + component children on the server, but if you fetch data remotely inside a Suspense boundary |
I guess my main point is mention of loadable-components has been stripped from the React docs. (Regardless of whether what we get in v18 really does the same thing as loadable-components or not) |
Sounds like it. React 18 can handle code splitting out of the box, keeping To support static CSS and optimise loading times one still need library like this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🐛 Bug Report
Not really a bug per say, but it looks like with React 18, this is no longer "A solution recommended by React Team"
I'll still have to use this for a while though, I don't think we can drop IE11 support yet where I work.
The text was updated successfully, but these errors were encountered: