Skip to content
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

Question: What's the future of that library with the development react lazy/suspense #202

Open
jaybe78 opened this issue Nov 13, 2019 · 2 comments

Comments

@jaybe78
Copy link

jaybe78 commented Nov 13, 2019

Hi @ScriptedAlchemy,

Just wanted your input regarding the future of the library knowing the recent works that have been done in the react library.

React Lazy provides now a way to do code splitting but does not support SSR yet. From what I've heard there's no plan to make react lazy supports SSR.

So I guess for now external libs like Loadable components or react universal will remain the best choices to take advantage of code splitting in isomorphic applications.

Knowing that, are you gonna keep investing time in the library, making upgrades and fixing bugs ?

What about react suspense ? I have not used it yet. Do you guys know whether it fits well into react universal ?

Cheers

@revelt
Copy link

revelt commented Jan 30, 2020

are you gonna keep investing time in the library, making upgrades and fixing bugs ?

The last commit was 6 days ago, it seems authors are dedicated and still maintaining this.

@ScriptedAlchemy
Copy link
Collaborator

ScriptedAlchemy commented Jan 31, 2020

It’s needs a update. For sure. What I’m considering is incorporating the I built on webpack-external-import. Which is moving to suspense as well. While It’s interleaving isn’t meant to ssr - I’ll look at lifting the capabilities up to newer implementations. If I can, I’d like to incorporate its universal functionality into that. There’s alternatives more dedicated to just ssr and code splitting which is why it’s not been a big priority. But now that I’ve designed a new way to analyze the codebases. I’m thinking I could create something more sophisticated than the classic chunk flushing tactics that everyone still uses on the other competing projects.

Suspense mostly doesn’t work because of the promise issues. But you could make it work if the known async items ere preloaded into require cache. Using the code I write for this project. There’s a good chance I can pre require the code split chunks and make suspense work on a server.

Formidable made a try catch ssr render which kept retrying till all promises loaded and the app would SSR. Webpack knows what the chunks are already. Adding something to the runtime would enable me to introduce a slick solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants