apal21 / nextjs-progressbar

A simple Next.js progressbar component using NProgress.
https://www.npmjs.com/package/nextjs-progressbar
MIT License
776 stars 61 forks source link

Manual control #82

Open leephan2k1 opened 2 years ago

leephan2k1 commented 2 years ago

I want to implement the loading to notify the user that it is fetching.

During fetching unchanged route to trigger routeChangeStart.

I want to control it to load as soon as possible and stop when an error occurs, How to implement it like NProgress.start() and NProgress.done() ?

imranbarbhuiya commented 2 years ago

You can use https://github.com/apal21/nextjs-progressbar/issues/81#issuecomment-1213941381 solution for now. I'm planning to export all the nprogress methods from this package. So you'll be able to use it without reinstalling.