apal21 / nextjs-progressbar

A simple Next.js progressbar component using NProgress.

Home Page:https://www.npmjs.com/package/nextjs-progressbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable NextProgress on fast changing static pages

robertocerdasilva opened this issue · comments

Hello!

Is there a way to disable NextProgress when visiting pages that contain static content or were created with getStaticProps?

Navigating to those pages is so fast that I don't see the need to show the progress bar in those cases. Very similar to how it works in Gatsby.JS, where the progress bar is only shown when the request is taking time.

Thank you.

@robertocerdasilva I had the same problem so I made a fork that waits for a certain amount of time before showing the bar. It adds a debounce prop. https://www.npmjs.com/package/@approximant/next-progress

commented

You can pr this feature here too if u want

@eamonma thanks bud!

@eamonma Thank you so much! it's great

@eamonma Your great effort definitely needs to be submitted as a pull request to this library. Thanks man!