apal21 / nextjs-progressbar

A simple Next.js progressbar component using NProgress.

Home Page:https://www.npmjs.com/package/nextjs-progressbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lamualfa opened this issue · 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?