Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Goofing around with some in progress React Router work by Mark Dalgleish: More granular route module code-splitting for faster transitions!

25,634 görüntüleme • 1 yıl önce •via X (Twitter)

8 Yorum

Ryan Shaw profil fotoğrafı
Ryan Shaw1 yıl önce

@markdalgleish super cool! At 2:22 you show the 2 chunks in the network panel, one tiny thing that would help DX would be to put the word 'loader' in the name of the chunk that is just the loader so it is obvious which one is which

Christian Esmann profil fotoğrafı
Christian Esmann1 yıl önce

I just launched an all-in-one template for cross-platform development, based on the stack I use myself everyday. Expo, NextJS, TypeScript, Tailwind, Firebase, AppsFlyer, Authentication, Analytics, In-App Purchases, Stripe and a lot more, setup by default.

valigo profil fotoğrafı
valigo1 yıl önce

@markdalgleish Man I have mad respect for Remix after having to work with it recently. I spent a month in a Remix-based project, and I still know jack shit about it, because it always stands out of the way and just lets me add features and do my thing. Can't say the same about a lot of others!

Saurav Varma profil fotoğrafı
Saurav Varma1 yıl önce

@markdalgleish It’s brilliant to see something as widespread as react router implement this. I’ve been talking about this for years and how eComm and large websites need it. We’ve been doing this in Catalyst for a while now and our routing core is react-router + sprinkles from our side ❤️

Rafaell Lycan 🇧🇷🇪🇸 profil fotoğrafı
Rafaell Lycan 🇧🇷🇪🇸1 yıl önce

@markdalgleish @franklinjavier

Oleg | webstudio.is profil fotoğrafı
Oleg | webstudio.is1 yıl önce

For this to speed things up the component has to be so large that it takes waaay more time to download the chunk than the latency ... my feeling is that download itself is rarely a problem unless its super large like 500kb+ or more, so what I would expect is from just looking at the video - latency + module (loader only) will take lets say 100ms - latency + module (loader + component) will take 120ms

Ryan Florence profil fotoğrafı
Ryan Florence1 yıl önce

@markdalgleish A couple Shopify apps inspired this, turns out some apps have a lot of components to render

Einar Paul Qvale profil fotoğrafı
Einar Paul Qvale1 yıl önce

@markdalgleish Will this also work for "createBrowserRouter"? For the critical routes I've split out the loader into a separate file and included it in the main bundle, in order for it to start asap when going directly to that route. I guess I could move the loader back next to Component.

Benzer Videolar

More goofing around from earlier
0:34

Sensitive content

More goofing around from earlier

Trash Stripes 🔞

41,523 görüntüleme • 1 yıl önce