TheSGJ / nextjs-toploader

A Next.js Top Loading Bar component made using nprogress, works with Next.js 14 , Next.js 13 and React.
https://www.npmjs.com/package/nextjs-toploader
MIT License
867 stars 50 forks source link

Progress Stuck Not Work when Using the useRouter hook (Client Components) #80

Closed abdalhafezsayeh closed 4 months ago

abdalhafezsayeh commented 4 months ago

Progress Stuck Not Work when Using the useRouter hook (Client Components) But When Use Link Its Work

jmotes commented 4 months ago

@abdalhafezsayeh are saying things like router.push don't trigger the progress bar?

If so, I have the same issue when using the App Router / Next.js 14.2.4.

There are some workarounds on https://github.com/TheSGJ/nextjs-toploader/issues/56 if that helps you.

abdalhafezsayeh commented 4 months ago

Thank you 🙏

TheSGJ commented 4 months ago

duplicate of #10