nextjs-progressbar icon indicating copy to clipboard operation
nextjs-progressbar copied to clipboard

Disable NextProgress on fast changing static pages

Open robertocerdasilva opened this issue 2 years ago • 5 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 avatar Feb 20 '23 19:02 robertocerdasilva

@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

eamonma avatar Apr 19 '23 13:04 eamonma

You can pr this feature here too if u want

imranbarbhuiya avatar Apr 19 '23 13:04 imranbarbhuiya

@eamonma thanks bud!

kdiffin avatar Apr 23 '23 11:04 kdiffin

@eamonma Thank you so much! it's great

robertocerdasilva avatar Apr 24 '23 20:04 robertocerdasilva

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

jeffminsungkim avatar Jul 22 '23 09:07 jeffminsungkim