You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Nifty little library, thanks a lot. I would like to use it together with next-useQueryState aka nuqs which handles syncing state with query params, but I can't use the modified useRouter of this library for that.
Describe the solution you'd like
I have the current slightly hacky hook in my app that can be used with the loading state returned from useTransition from which the startTransition function is handed to the parser options which works but is a little hacky.
// eslint-disable-next-line import/no-extraneous-dependencies -- from next13-progressbarimportNProgressfrom'nprogress';import{useEffect}from'react';exportconstuseShowNavLoadingBar=(loading: boolean)=>{useEffect(()=>{if(loading)NProgress.start();return()=>{NProgress.done();};},[loading]);};
It would be nice to include something like this in the library to trigger the NProgress bar imperatively or with a hook. Maybe just exporting the NProgress object from the library would be an option.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Nifty little library, thanks a lot. I would like to use it together with next-useQueryState aka nuqs which handles syncing state with query params, but I can't use the modified
useRouter
of this library for that.Describe the solution you'd like
I have the current slightly hacky hook in my app that can be used with the loading state returned from
useTransition
from which thestartTransition
function is handed to the parser options which works but is a little hacky.It would be nice to include something like this in the library to trigger the
NProgress
bar imperatively or with a hook. Maybe just exporting theNProgress
object from the library would be an option.The text was updated successfully, but these errors were encountered: