apal21 / nextjs-progressbar

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

Is there a way to trigger nprogress manually within the hook? #81

Closed lamualfa closed 2 years ago

lamualfa commented 2 years ago

After the user changes their locale by clicking a locale link, the system will persist the new locale on the user session. So to prevent the app from not giving any feedback to the user while the locale is being persisted, I want to trigger nprogress loading.

Is there a way to trigger nprogress manually within the hook?

image

lamualfa commented 2 years ago

SOLVED

You can trigger the nprogress manually by installing & import the nprogress dependency.

image

imranbarbhuiya commented 2 years ago

@apal21 can we re-export nprogress from our package so users can use it without reinstalling it?