Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Client/Server composition with server components feels illegal 😅

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

10 Yorum

Savva Mikhalevski profil fotoğrafı
Savva Mikhalevski2 yıl önce

This can be done with the same number of lines using regular REST. But with rate limiting, caching, proper security, and separation of concerns.

jarindr.eth | zentry ⚡️ profil fotoğrafı
jarindr.eth | zentry ⚡️2 yıl önce

Can someone tell me what's the benefit vs calling API and update result on the client again? Not talking about you don't need "backend"

Alex Sidorenko profil fotoğrafı
Alex Sidorenko2 yıl önce

I think it's mainly this 1. Eliminate the problem of duplicating and synchronizing the data state on the client 2. Great potential for shared full-stack components in the future

Eric Afes profil fotoğrafı
Eric Afes2 yıl önce

So having a key on the Suspense forces the server component to rerun? 🤔

Alex Sidorenko profil fotoğrafı
Alex Sidorenko2 yıl önce

The server component reruns because of the query params updates (regardless of the key on the Suspense). The key on the Suspense re-triggers the suspense fallback on every re-run. Here is how it would work without it.

Abdulrahman profil fotoğrafı
Abdulrahman2 yıl önce

It’s legal though 😂

Fredkisss is on 🦋 blue sky 🦋 profil fotoğrafı
Fredkisss is on 🦋 blue sky 🦋2 yıl önce

This is actually incredible 🤯

Kofi Bamfo Quaicoe profil fotoğrafı
Kofi Bamfo Quaicoe2 yıl önce

Can you please make a @YouTube tutorial for all these...

Alex Sidorenko profil fotoğrafı
Alex Sidorenko2 yıl önce

@YouTube What would you like to see in a tutorial?

Salik Jamal profil fotoğrafı
Salik Jamal2 yıl önce

These tutorials are always great man, Next.js is awesome!

Benzer Videolar