Closed anubra266 closed 3 years ago
Thanks for the PR! I'll review and merge this!
Happy to help.
Please, when will you review the PR. So we can make update it in our projects.
This code is not working as intended. The progress bar is getting stuck on route change. I tested this code with this repo: https://github.com/apal21/demo-nextjs-progressbar
It's often preferable to delay showing the loading indicator until a request has taken longer than 250ms-500ms. This prevents the loading indicator from appearing constantly on quick page visits, which can be visually distracting.