Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Software engineering is about tradeoffs. Let's talk about how data fetching happens in different meta-frameworks and what the trade-offs of those approaches are.

44,302 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

Pedro Cattori profil fotoğrafı
Pedro Cattori2 yıl önce

That looks familiar! I proposed pretty much exactly this API in a Remix RFC a while back. The trade-off from our perspective is that it requires even more compiler magic and makes normal refactors more likely to break correctness.

Miško Hevery (AngularJS/Angular/Qwik) profil fotoğrafı
Miško Hevery (AngularJS/Angular/Qwik)2 yıl önce

Yes this is solved with the code extraction magic of $().

JLarky profil fotoğrafı
JLarky2 yıl önce

Well, you can technically do multi loader patter with RSC by exporting data function that starts promise and inside the component you just use it with React.use

Miško Hevery (AngularJS/Angular/Qwik) profil fotoğrafı
Miško Hevery (AngularJS/Angular/Qwik)2 yıl önce

Yes as I said there are ways around it. But I am more interested what is available out of the box.

Paul profil fotoğrafı
Paul2 yıl önce

Great vid Misko! Man, data is confusing!

dohn profil fotoğrafı
dohn2 yıl önce

this is great! i'd love one about mutations with loader revalidation

Shelton Louis profil fotoğrafı
Shelton Louis2 yıl önce

Vue is also going for the multi-loader approach. But we have to write keys but you don't why? I know this is a minor inconvenience but SSR mechanics make devs do too much work!

Miško Hevery (AngularJS/Angular/Qwik) profil fotoğrafı
Miško Hevery (AngularJS/Angular/Qwik)2 yıl önce

Could you point me to some docs / code examples? We don't because of $() 1. creates the keys automatically for you and 2. allows you to directly refer to server code without pulling it into the client

RumNCode 🥃 profil fotoğrafı
RumNCode 🥃2 yıl önce

I love the video though wish you would have used the same example of artist and playlist so it's a 1-1 example

Miško Hevery (AngularJS/Angular/Qwik) profil fotoğrafı
Miško Hevery (AngularJS/Angular/Qwik)2 yıl önce

Thanks for the feedback. That is a fair point.

Benzer Videolar