正在加载视频...
视频加载失败
How to show inline loading indicator when updating search params in Next.js (App Router)
9 条评论

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

Ollie Martynov1 年前
Ah yes. The good old transitions api

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🧉1 年前
useTransition is a native hook from react?

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

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

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

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

Umair Ali1 年前
If we want the same on pages route?


