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

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

На главную

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

61,834 просмотров • 1 год назад •via X (Twitter)

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

Фото профиля Dan Skiba
Dan Skiba1 год назад

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

Фото профиля Ollie Martynov
Ollie Martynov1 год назад

Ah yes. The good old transitions api

Фото профиля Tomas Jansson
Tomas Jansson1 год назад

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🧉
marcog🧉1 год назад

useTransition is a native hook from react?

Фото профиля Coding With Mr.M
Coding With Mr.M1 год назад

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
Matt1 год назад

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

Фото профиля Kiran
Kiran1 год назад

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

Фото профиля elsie
elsie1 год назад

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

Фото профиля Umair Ali
Umair Ali1 год назад

If we want the same on pages route?

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