Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable NextProgress on fast changing static pages #91

Open
robertocerdasilva opened this issue Feb 20, 2023 · 5 comments
Open

Disable NextProgress on fast changing static pages #91

robertocerdasilva opened this issue Feb 20, 2023 · 5 comments

Comments

@robertocerdasilva
Copy link

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.

@eamonma
Copy link

eamonma commented Apr 19, 2023

@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

@imranbarbhuiya
Copy link
Collaborator

You can pr this feature here too if u want

@kdiffin
Copy link

kdiffin commented Apr 23, 2023

@eamonma thanks bud!

@robertocerdasilva
Copy link
Author

@eamonma Thank you so much! it's great

@jeffminsungkim
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants