Video wird geladen...
Video konnte nicht geladen werden
How to show inline loading indicator when updating search params in Next.js (App Router)
61,834 Aufrufe • vor 1 Jahr •via X (Twitter)
9 Kommentare

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

Ah yes. The good old transitions api

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!

useTransition is a native hook from react?

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

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

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

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

If we want the same on pages route?


