Загрузка видео...

Не удалось загрузить видео

На главную

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

208,536 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

Adding debounce to stop fetching on every keystroke

Фото профиля JLarky
JLarky2 лет назад

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

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

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
Alex Sidorenko2 лет назад

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

Фото профиля Onur Şuyalçınkaya
Onur Şuyalçınkaya2 лет назад

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

Фото профиля Coding in Flow
Coding in Flow2 лет назад

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

Фото профиля Fredkisss is on 🦋 blue sky 🦋
Fredkisss is on 🦋 blue sky 🦋2 лет назад

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
Malte Ubl2 лет назад

I love the format! Awesome work!

Фото профиля Zain Zafar
Zain Zafar2 лет назад

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

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

I make animations with Apple Keynote Theme - Monokai

Похожие видео