Skyleen77 / next-nprogress-bar

NProgress integration on Next.js compatible with /app and /pages folders
https://next-nprogress-bar.vercel.app
315 stars 24 forks source link

feat: ignoring router.push() to the same pathname/url #8

Closed ndungtse closed 1 year ago

ndungtse commented 1 year ago

Currently when you programmatically navigate using const router = useRouter() and then router.push('/current-url') the progresbar is shown while it is on the samee url while using appDir. This issue is fixed in this pull request

Skyleen77 commented 1 year ago

I made your change.

However, I did not directly accept your commit because you are not using the same linter as me.

You can now add the new version 2.1.0.

Thank you for your work.