apal21/nextjs-progressbar

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

lamualfa opened this issue · 2 comments

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

SOLVED

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

image

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