Getting Started
If you've found yourself struggling to implement a reliable router progress bar for your Next.js 13 project, don't wor...
For further actions, you may consider blocking this person and/or reporting abuse
Nice one!!
I found a bug 😪 when you command-click, it opens in a new tab, and in the original tab, the loading runs forever.
Thank you so much! What if I want to create a custom loading screen? like an overlay with the spinner in the center? can I do this with it?
When I use router.push from next 13, NextTopLoader doesn't work, does anyone have a solution?
@erosmariano
NextTopLoader
will only work for<Link>
But then it is useless sorry.
Good news! Update the package to the latest version. Import
useRouter
fromnextjs-toploader/app
, and then use router.push.This
useRouter
is a wrapper for nextjsuseRouter
hook.Thank you, bro, very helpful.
Next JS does the magic!
it's nice...
hi. nice work ! im having issues setting the color tho
@shapati You can set the color from
<NextTopLoader />
component. Example:<NextTopLoader color="#FFFFFF" />