Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

How to show inline loading indicator when updating search params in Next.js (App Router)

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

9 Yorum

Dan Skiba profil fotoğrafı
Dan Skiba1 yıl önce

I prefer progress bar at the top of a page and for that reason I've created lil hooks demo:

Ollie Martynov profil fotoğrafı
Ollie Martynov1 yıl önce

Ah yes. The good old transitions api

Tomas Jansson profil fotoğrafı
Tomas Jansson1 yıl önce

An even more general approach would be to wrap link and add a (discrete) loading indicator for all navigations. Very nice though! It is so nice to see how you communicate simple examples!

marcog🧉 profil fotoğrafı
marcog🧉1 yıl önce

useTransition is a native hook from react?

Coding With Mr.M profil fotoğrafı
Coding With Mr.M1 yıl önce

Nice , but just to add if we use @tan_stack then we no need to use that, we can just use the mutation.isLoading

Matt profil fotoğrafı
Matt1 yıl önce

Man this is gold I didn’t know u could do this 🤯

Kiran profil fotoğrafı
Kiran1 yıl önce

Nice, i'm using the same but with nuqs to update the search params.

elsie profil fotoğrafı
elsie1 yıl önce

hi Alex, how to display tailwind icon when we short the line of code ?

Umair Ali profil fotoğrafı
Umair Ali1 yıl önce

If we want the same on pages route?

Benzer Videolar