Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Server-side search with Next.js 13 and server components

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

10 Yorum

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

Adding debounce to stop fetching on every keystroke

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

Why do we have fetch on the server if we are already on the server?

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

External api. I reduced api string a bit too much for the animation (for all code to fit in) which indeed makes it confusing.

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

The actual API is external. Shortened it for the animation to fit in.

Onur Şuyalçınkaya profil fotoğrafı
Onur Şuyalçınkaya2 yıl önce

the only downside of this is that using `searchParams` will opt the page into dynamic rendering at the request time

Coding in Flow profil fotoğrafı
Coding in Flow2 yıl önce

Now you can also use form + server action + redirect and keep it a server component.

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

It’s better to wrap the input in a form and calling router.push() onSubmit on the form and call form.requestSubmit() when the input changes, So that using it can be progressively enhanced and work with/without JS

Malte Ubl profil fotoğrafı
Malte Ubl2 yıl önce

I love the format! Awesome work!

Zain Zafar profil fotoğrafı
Zain Zafar2 yıl önce

cool stuff I have 2 unrelated questions: 1. How did you create this animation? 2. Which theme is it?

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

I make animations with Apple Keynote Theme - Monokai

Benzer Videolar